Skip to content

Commit cb98d5f

Browse files
committed
feat: regroup workflow to one with dependency
Signed-off-by: disaster37 <linuxworkgroup@hotmail.com>
1 parent 56589ce commit cb98d5f

2 files changed

Lines changed: 34 additions & 48 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,37 @@ jobs:
4242
with:
4343
files: coverage.out
4444
flags: unittests
45-
fail_ci_if_error: true
45+
fail_ci_if_error: true
46+
47+
goreleaser:
48+
runs-on: ubuntu-latest
49+
needs: [build]
50+
if: startsWith(github.ref, 'refs/tags/')
51+
steps:
52+
-
53+
name: Checkout
54+
uses: actions/checkout@v2
55+
-
56+
name: Unshallow
57+
run: git fetch --prune --unshallow
58+
-
59+
name: Set up Go
60+
uses: actions/setup-go@v2
61+
with:
62+
go-version: 1.17
63+
-
64+
name: Import GPG key
65+
id: import_gpg
66+
uses: paultyng/ghaction-import-gpg@v2.1.0
67+
env:
68+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
69+
PASSPHRASE: ${{ secrets.PASSPHRASE }}
70+
-
71+
name: Run GoReleaser
72+
uses: goreleaser/goreleaser-action@v2
73+
with:
74+
version: latest
75+
args: release --rm-dist
76+
env:
77+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)