Skip to content

Commit d35d5f8

Browse files
authored
Merge pull request #34 from ryuux05/fix/ci-release
fix release
2 parents 10d1f56 + daf4317 commit d35d5f8

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v0.1.0'
6+
- 'v*' # Trigger on any version tag
77

88
permissions:
99
contents: write
@@ -20,28 +20,18 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v4
2222
with:
23-
go-version: 1.24.x
23+
go-version-file: go.mod
2424

2525
- name: Run tests
2626
run: go test -race ./...
2727

28-
- name: Create release archives
29-
run: |
30-
# Create cross-platform binaries
31-
mkdir -p dist
32-
33-
# Linux AMD64
34-
GOOS=linux GOARCH=amd64 go build -o dist/godex-linux-amd64 ./cmd
35-
36-
# macOS AMD64
37-
GOOS=darwin GOARCH=amd64 go build -o dist/godex-darwin-amd64 ./cmd
38-
39-
# Windows AMD64
40-
GOOS=windows GOARCH=amd64 go build -o dist/godex-windows-amd64.exe ./cmd
41-
4228
- name: Create GitHub release
4329
uses: softprops/action-gh-release@v1
4430
with:
45-
files: |
46-
dist/godex-*
47-
generate_release_notes: true
31+
tag_name: ${{ github.ref_name }}
32+
generate_release_notes: true
33+
body: |
34+
## Installation
35+
36+
go get github.com/ryuux05/godex@${{ github.ref_name }}
37+
See [CHANGELOG.md](https://github.com/ryuux05/godex/blob/${{ github.ref_name }}/CHANGELOG.md) for full release notes.

0 commit comments

Comments
 (0)