Skip to content

Commit 0f69669

Browse files
committed
Update failing release GitHub Action
1 parent c4fb25a commit 0f69669

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
name: Build Release
22

3-
on: create
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
47

58
jobs:
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-*

0 commit comments

Comments
 (0)