diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45546892..0cde0c71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,12 +13,6 @@ on: permissions: contents: write -# Default values to simplify job configurations below. -env: - # Go language version to use for building. This value should also be updated - # in the testing workflow if changed. - GO_VERSION: '1.18' - jobs: goreleaser: runs-on: ubuntu-latest @@ -29,18 +23,14 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v3 with: - go-version: ${{ env.GO_VERSION }} - # This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your - # private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE` - # secret. If you would rather own your own GPG handling, please fork this action - # or use an alternative one for key handling. + go-version-file: 'go.mod' + cache: true - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v5 id: import_gpg - uses: hashicorp/ghaction-import-gpg@v2.1.0 - env: - # These secrets will need to be configured for the repository: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.PASSPHRASE }} + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3.1.0 with: