Skip to content

Commit 51b60e4

Browse files
committed
ci: update release workflow to use Go 1.26 and include checksums
Signed-off-by: James Nesbitt <jnesbitt@mirantis.com>
1 parent 938f56a commit 51b60e4

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: "1.25"
25+
go-version: "1.26"
26+
cache: true
2627

2728
- name: Build binaries
2829
run: |
@@ -31,14 +32,19 @@ jobs:
3132
for platform in "${platforms[@]}"; do
3233
GOOS=${platform%/*}
3334
GOARCH=${platform#*/}
34-
output_name="dist/launchpad_${GOOS}_${GOARCH}"
35+
output_name="launchpad_${GOOS}_${GOARCH}"
3536
if [ "$GOOS" = "windows" ]; then
3637
output_name+=".exe"
3738
fi
3839
echo "Building $output_name"
39-
GOOS=$GOOS GOARCH=$GOARCH go build -o "$output_name" ./main.go
40+
GOOS=$GOOS GOARCH=$GOARCH go build -o "dist/$output_name" ./main.go
4041
done
4142
43+
- name: Generate Checksums
44+
run: |
45+
cd dist
46+
sha256sum * > checksums.txt
47+
4248
- name: Upload artifacts
4349
uses: actions/upload-artifact@v4
4450
with:
@@ -61,7 +67,8 @@ jobs:
6167
- name: Create GitHub Release
6268
uses: softprops/action-gh-release@v1
6369
with:
64-
files: dist/*
70+
files: |
71+
dist/*
6572
generate_release_notes: true
6673
draft: true
6774
env:

0 commit comments

Comments
 (0)