Skip to content

Commit 2f80f37

Browse files
authored
fix: goreleaser release automation (#94)
Use git-semver instead of ccv which fails to choose the next version correctly. Update goreleaser config to support v2.
1 parent e8f759d commit 2f80f37

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ jobs:
3030
- name: Bump tag if necessary
3131
id: tag
3232
run: |
33-
if [ -z $(git tag -l $(git-semver)) ]; then
34-
git tag $(git-semver)
33+
nextver=v$(git-semver)
34+
if [ -z $(git tag -l ${nextver}) ]; then
35+
git tag ${nextver}
3536
git push --tags
3637
echo "new=true" >> $GITHUB_OUTPUT
3738
fi

.goreleaser.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
builds:
23
- id: onionpipe
34
binary: onionpipe
@@ -9,7 +10,8 @@ builds:
910
- amd64
1011

1112
brews:
12-
- tap:
13+
- name: onionpipe
14+
repository:
1315
owner: cmars
1416
name: homebrew-onionpipe
1517
branch: main

0 commit comments

Comments
 (0)