Skip to content

Commit

Permalink
ci: fix goreleaser and its github aciton
Browse files Browse the repository at this point in the history
  • Loading branch information
singalhimanshu committed Apr 1, 2021
1 parent 261fe25 commit a303bc7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
- 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: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
6 changes: 1 addition & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
project_name: taskgo
before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -25,8 +26,3 @@ changelog:
exclude:
- "^docs:"
- "^test:"
env_files:
github_token: ~/.config/goreleaser/github_token
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]

0 comments on commit a303bc7

Please sign in to comment.