Skip to content

Commit 605f9c8

Browse files
committed
Fixing release workflow
1 parent fff32e5 commit 605f9c8

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
test:
1013
runs-on: ubuntu-latest
@@ -27,19 +30,19 @@ jobs:
2730
fail-fast: false
2831
matrix:
2932
include:
30-
- os: ubuntu-latest
33+
- os: ubuntu-latest # linux/amd64
3134
goos: linux
3235
goarch: amd64
33-
- os: ubuntu-latest
36+
- os: ubuntu-24.04-arm # linux/arm64 — native arm64 runner
3437
goos: linux
3538
goarch: arm64
36-
- os: macos-latest
39+
- os: macos-13 # darwin/amd64 — native Intel runner
3740
goos: darwin
3841
goarch: amd64
39-
- os: macos-latest
42+
- os: macos-latest # darwin/arm64 — native Apple Silicon
4043
goos: darwin
4144
goarch: arm64
42-
- os: windows-latest
45+
- os: windows-latest # windows/amd64
4346
goos: windows
4447
goarch: amd64
4548
steps:
@@ -53,9 +56,11 @@ jobs:
5356

5457
- name: Compute version
5558
id: version
59+
shell: bash
5660
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
5761

5862
- name: Build binary
63+
shell: bash
5964
env:
6065
GOOS: ${{ matrix.goos }}
6166
GOARCH: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)