From 68c2386b72c3f63a53782ec0e1931fa2e7f26a7b Mon Sep 17 00:00:00 2001 From: John Hanrahan Date: Wed, 11 Aug 2021 11:19:41 -0700 Subject: [PATCH] remove minor versions from goreleaser --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45cf2e3..3ce8192 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ # This GitHub action can publish assets for release when a tag is created. # Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0). # -# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your +# 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. @@ -14,14 +14,13 @@ on: push: tags: - 'v*' - jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2 - name: Unshallow run: git fetch --prune --unshallow @@ -35,14 +34,16 @@ jobs: 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 }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2.5.0 + uses: goreleaser/goreleaser-action@v2 with: version: latest args: release --rm-dist env: GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + # GitHub sets this automatically + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file