Skip to content

Commit f3651e7

Browse files
authored
chore(ci): release binary when publish binary (#2)
1 parent d65d9b5 commit f3651e7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release-binary.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release Binaries
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
binary:
9+
runs-on: ubuntu-latest
10+
env:
11+
working-directory: go/src/github.com/gnolang/supernova
12+
13+
steps:
14+
- name: Set up Go
15+
uses: actions/setup-go@v3
16+
with:
17+
go-version: 1.19
18+
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
with:
22+
path: ${{ env.working-directory }}
23+
fetch-depth: 0
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v2
27+
with:
28+
workdir: ${{ env.working-directory }}
29+
version: 1.13.0
30+
args: release --rm-dist

0 commit comments

Comments
 (0)