Skip to content

Commit

Permalink
fix: goreleaser release automation (#94)
Browse files Browse the repository at this point in the history
Use git-semver instead of ccv which fails to choose the next version
correctly.

Update goreleaser config to support v2.
  • Loading branch information
cmars authored Jul 19, 2024
1 parent e8f759d commit 2f80f37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
- name: Bump tag if necessary
id: tag
run: |
if [ -z $(git tag -l $(git-semver)) ]; then
git tag $(git-semver)
nextver=v$(git-semver)
if [ -z $(git tag -l ${nextver}) ]; then
git tag ${nextver}
git push --tags
echo "new=true" >> $GITHUB_OUTPUT
fi
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- id: onionpipe
binary: onionpipe
Expand All @@ -9,7 +10,8 @@ builds:
- amd64

brews:
- tap:
- name: onionpipe
repository:
owner: cmars
name: homebrew-onionpipe
branch: main
Expand Down

0 comments on commit 2f80f37

Please sign in to comment.