diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c1aed1..308b654 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,18 +12,19 @@ on: jobs: linux: - name: "Ubuntu 20.04 + PostgreSQL ${{matrix.PGVER}}" - runs-on: ubuntu-20.04 + name: "Ubuntu + PostgreSQL ${{matrix.PGVER}}" + runs-on: ubuntu-latest strategy: matrix: - PGVER: [10, 11, 12, 13, 14] + PGVER: [14, 15, 16, 17, 18] steps: - name: "Checkout" - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: "InstallDB" run: | echo "::group::apt-get-update" + sudo curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc -o /etc/apt/trusted.gpg.d/postgresql.asc echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main ${{matrix.PGVER}}" \ | sudo tee /etc/apt/sources.list.d/pgdg.list sudo -nH apt-get -q update diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d58f2f5..35b1d3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout code id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build tarball id: build @@ -29,24 +29,10 @@ jobs: - name: Create release id: release - uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - tag_name: ${{github.ref}} - release_name: ${{github.event.repository.name}} v${{env.EXT_VERSION}} - body_path: docs/notes/v${{env.EXT_VERSION}}.md - draft: false - prerelease: false - - - name: Upload source - id: upload - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - upload_url: ${{steps.release.outputs.upload_url}} - asset_path: ${{env.TGZ}} - asset_name: ${{env.TGZ}} - asset_content_type: application/x-gzip + run: | + gh release create "${{github.ref_name}}" "${{env.TGZ}}" \ + --title "${{github.event.repository.name}} ${{github.ref_name}}" \ + --notes-file "docs/notes/${{github.ref_name}}.md"