Skip to content

Commit

Permalink
Fix Github action ⚓
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Jun 14, 2021
1 parent 33f8c4f commit 77b5e01
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,27 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Import GPG key
- name: Import GPG Key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Store Git Tag
id: "getTag"
run: echo ::set-output name=tag::$(echo "${GITHUB_REF##*/}")
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
workdir: githooks
args: release --rm-dist
env:

GORELEASER_CURRENT_TAG : ${{ steps.getTag.outputs.tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

jobs:
report:
tagSourceCode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 77b5e01

Please sign in to comment.