Skip to content

Commit 9a5c338

Browse files
ci: clean up
1 parent 768e7cd commit 9a5c338

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

Diff for: .github/workflows/release.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
run: |
2121
echo "TAG_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
2222
echo "Ref: $GITHUB_REF"
23-
24-
# Assuming GITHUB_REF_NAME or another variable is correctly set to the tag name,
25-
# we then check if the tag matches the semantic version pattern.
2623
- name: Check if tag is a version tag
2724
id: tag_check
2825
run: |
@@ -33,8 +30,6 @@ jobs:
3330
fi
3431
env:
3532
TAG_NAME: ${{ github.event.workflow_run.head_commit.message }}
36-
37-
3833
- name: Determine Go version
3934
id: set_goversion
4035
run: |
@@ -45,17 +40,22 @@ jobs:
4540
fi
4641
4742
release:
48-
runs-on: ubuntu-latest
49-
strategy:
50-
matrix:
51-
# build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64
52-
goos: [darwin]
53-
goarch: [amd64, arm64]
54-
steps:
55-
- uses: actions/checkout@v4
56-
- uses: wangyoucao577/go-release-action@v1
57-
with:
58-
github_token: ${{ secrets.GITHUB_TOKEN }}
59-
goos: ${{ matrix.goos }}
60-
goarch: ${{ matrix.goarch }}
61-
goversion: ${{ steps.set_goversion.outputs.goversion }}
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
goos: [darwin]
47+
goarch: [amd64, arm64]
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: wangyoucao577/go-release-action@v1
51+
with:
52+
github_token: ${{ secrets.GITHUB_TOKEN }}
53+
goos: ${{ matrix.goos }}
54+
goarch: ${{ matrix.goarch }}
55+
goversion: ${{ steps.set_goversion.outputs.goversion }}
56+
57+
# homebrew:
58+
# runs-on: ubuntu-latest
59+
# run: |
60+
61+

0 commit comments

Comments
 (0)