Skip to content

Commit

Permalink
Enable builds
Browse files Browse the repository at this point in the history
  • Loading branch information
monde committed Sep 30, 2022
1 parent bc4228a commit b6b23d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Unshallow
run: git fetch --prune --unshallow
Expand All @@ -21,21 +19,21 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.19
#-
# name: Import GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v5
# # These secrets will need to be configured for the repository:
# with:
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.PASSPHRASE }}
-
name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
# These secrets will need to be configured for the repository:
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
# GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ builds:
- windows
- darwin
- freebsd
main: ./cmd/cli/
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit b6b23d8

Please sign in to comment.