File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build Release
22
3- on : create
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
47
58jobs :
69 release :
710 name : Build Release
811 runs-on : ubuntu-latest
912 steps :
10- - name : Go Release Binary
11- uses : ngs/go-release.action@v1.0.2
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-go@v5
15+ with :
16+ go-version-file : go.mod
17+ - name : Get version from tag
18+ id : version
19+ run : echo "VERSION=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
20+ - name : Build binaries
21+ run : |
22+ GOOS=linux GOARCH=amd64 go build -o eldim-${{ steps.version.outputs.VERSION }}-linux-amd64 .
23+ GOOS=linux GOARCH=arm64 go build -o eldim-${{ steps.version.outputs.VERSION }}-linux-arm64 .
24+ GOOS=darwin GOARCH=arm64 go build -o eldim-${{ steps.version.outputs.VERSION }}-darwin-arm64 .
25+ - name : Create Release
26+ uses : softprops/action-gh-release@v2
27+ with :
28+ files : eldim-*
You can’t perform that action at this time.
0 commit comments