File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ name : Release
3+
4+ on :
5+ push :
6+ tags :
7+ - ' v*'
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Go
21+ uses : actions/setup-go@v5
22+ with :
23+ go-version : ' 1.23'
24+
25+ - name : Build amd64
26+ run : |
27+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
28+ go build -o nodedata
29+ tar czf nodedata-${GITHUB_REF_NAME}-linux-amd64.tar.gz nodedata
30+
31+ - name : Build arm64
32+ run : |
33+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 \
34+ go build -o nodedata
35+ tar czf nodedata-${GITHUB_REF_NAME}-linux-arm64.tar.gz nodedata
36+
37+ - name : Release
38+ uses : softprops/action-gh-release@v2
39+ with :
40+ files : |
41+ nodedata-${{ github.ref_name }}-linux-amd64.tar.gz
42+ nodedata-${{ github.ref_name }}-linux-arm64.tar.gz
You can’t perform that action at this time.
0 commit comments