Skip to content

Commit

Permalink
fix(gitreleaser): update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed Oct 23, 2023
1 parent b7d239b commit 5a618a9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go 1.17.2
- name: Set up Go 1.21.0
uses: actions/setup-go@v2
with:
go-version: 1.17.2
go-version: 1.21.0
id: go

- name: Import GPG key
Expand Down
39 changes: 39 additions & 0 deletions 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release gau

on:
push:
tags:
- "*"

jobs:
build:
name: GoReleaser build
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go 1.21.0
uses: actions/setup-go@v2
with:
go-version: 1.21.0
id: go

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

0 comments on commit 5a618a9

Please sign in to comment.