Skip to content

Commit 9cbfd68

Browse files
committed
ci: simplify release workflow matrix and parameters
- Use array matrix for goos and goarch - Rely on go-release-action defaults for release_tag and asset_name - Enable overwrite for release assets
1 parent 6af949f commit 9cbfd68

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,18 @@ jobs:
1212
permissions:
1313
contents: write
1414
strategy:
15-
fail-fast: false
1615
matrix:
17-
include:
18-
# Linux builds
19-
- goos: linux
20-
goarch: amd64
21-
- goos: linux
22-
goarch: arm64
23-
# macOS builds
24-
- goos: darwin
25-
goarch: amd64
26-
- goos: darwin
27-
goarch: arm64
28-
# Windows builds
29-
- goos: windows
30-
goarch: amd64
31-
- goos: windows
32-
goarch: arm64
16+
goos: [linux, windows, darwin]
17+
goarch: [amd64, arm64]
3318
name: release ${{ matrix.goos }}/${{ matrix.goarch }}
3419
runs-on: ubuntu-latest
3520
steps:
3621
- uses: actions/checkout@v4
37-
- uses: wangyoucao577/go-release-action@v1
22+
- uses: fourdollars/go-release-action@master
3823
with:
3924
github_token: ${{ secrets.GITHUB_TOKEN }}
4025
goos: ${{ matrix.goos }}
4126
goarch: ${{ matrix.goarch }}
42-
release_tag: ${{ github.ref_name }}
4327
md5sum: false
4428
sha256sum: true
45-
asset_name: "lp-api-${{github.ref_name}}-${{ matrix.goos }}-${{ matrix.goarch }}"
46-
ldflags: "-s -w"
29+
overwrite: true

0 commit comments

Comments
 (0)