Skip to content

Commit a044f8e

Browse files
committed
ci: add release workflow publishing atom-recovery
1 parent 23856a3 commit a044f8e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
on:
3+
push:
4+
tags: ['v*']
5+
permissions:
6+
contents: write
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with:
14+
go-version: '1.26'
15+
- name: Build
16+
run: |
17+
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o dist/atom-recovery ./cmd/atom-recovery
18+
tar -C dist -czf "atom-recovery-${GITHUB_REF_NAME}-x86_64.tar.gz" atom-recovery
19+
- uses: softprops/action-gh-release@v2
20+
with:
21+
files: "*.tar.gz"

0 commit comments

Comments
 (0)