Skip to content

Commit

Permalink
release: Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
iFreilicht committed Oct 11, 2024
1 parent c7ef396 commit 9788e5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,18 @@ echo "{ version = \"$version\"; released = true; }" > version.nix
# Commit and tag the release
git commit -am "release: v$version"
git tag -a "v$version" -m "release: v$version"
git tag -d "latest"
git tag -a "latest" -m "release: v$version"

# a revsion suffix when run from the tagged release commit
echo "{ version = \"$version\"; released = false; }" > version.nix
git commit -am "release: reset released flag"

echo "now run 'git push --tags origin master'"
echo "Release was prepared successfully!"
echo "To push the release, run the following command:"
echo
echo " git push origin master v$version && git push --force latest"
echo
echo "After that, create a release on GitHub:"
echo
echo " https://github.com/nix-community/disko/releases/new"

0 comments on commit 9788e5d

Please sign in to comment.