Skip to content

Commit

Permalink
Merge pull request #106 from EventStore/brock/fix-go-releaser
Browse files Browse the repository at this point in the history
ci
  • Loading branch information
bshelton authored Aug 14, 2024
2 parents 56a5c71 + 95d1e5f commit 82d695d
Showing 1 changed file with 30 additions and 35 deletions.
65 changes: 30 additions & 35 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
name: release
on:
push:
tags:
- 'v*'
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
-
name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
# These secrets will need to be configured for the repository:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY_2024 }}
passphrase: ${{ secrets.GPG_PASSPHRASE_2024 }}
-
name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
# These secrets will need to be configured for the repository:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY_2024 }}
passphrase: ${{ secrets.GPG_PASSPHRASE_2024 }}
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 82d695d

Please sign in to comment.