Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed May 29, 2023
1 parent 3fafb3b commit cbda987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ Commands:
supported-system remove remove a supported system
checksums add add checksums to the config file
checksums prune remove unnecessary checksums from the config file
checksums sync add checksums to the config file and remove unnecessary
checksums
init create an empty config file
cache clear clear the cache
version show bindown version
Expand Down
10 changes: 7 additions & 3 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ else
fi
fi

# pre-build so there isn't such a long time between creating the release and adding the assets
if [ -f ".goreleaser.yaml" ]; then
script/bindown -q install goreleaser
bin/goreleaser release --snapshot --clean
fi

bin/gh release create "v$NEXT_VERSION" -t "v$NEXT_VERSION" --generate-notes

# If there's no .goreleaser.yaml, there's nothing left to do.
[ -f ".goreleaser.yaml" ] || exit 0

# now build for real
git fetch --tags

script/bindown -q install goreleaser

bin/goreleaser release --clean

0 comments on commit cbda987

Please sign in to comment.