Skip to content

Commit 4f01a84

Browse files
authored
Merge pull request #104 from ddzero2c/master
Support darwin_arm64 package
2 parents 0bdc988 + 7ad4aec commit 4f01a84

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/tag.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.16
23+
- name: Import GPG key
24+
id: import_gpg
25+
uses: crazy-max/ghaction-import-gpg@v3
26+
with:
27+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
28+
passphrase: ${{ secrets.PASSPHRASE }}
29+
- name: Run GoReleaser
30+
uses: goreleaser/goreleaser-action@v2
31+
with:
32+
version: latest
33+
args: release --rm-dist
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
37+
- name: Upload assets
38+
uses: actions/upload-artifact@v2
39+
with:
40+
path: dist/*

0 commit comments

Comments
 (0)