;tools: binaries, nightly, nightlytag

This commit is contained in:
Simon Michael 2025-03-08 09:14:35 -10:00
parent 307c679d23
commit 966748b2e0

View File

@ -1216,11 +1216,19 @@ relbranch VER:
# # echo "Updating CHANGES.md files with latest commits..." # # echo "Updating CHANGES.md files with latest commits..."
# # ./Shake changelogs $COMMIT # # ./Shake changelogs $COMMIT
# Push the current branch to github to generate release binaries. # Push the current branch to github and generate release binaries from it.
@relbin: @relbin:
# assumes the github remote is named "origin" # assumes the github remote is named "origin"
git push -f origin HEAD:binaries git push -f origin HEAD:binaries
# Push master to github and generate platform binaries from it.
@binaries:
git push -f origin master:binaries
# Upload the last-built platform binaries to the "nightly" prerelease. Run binaries first.
@nightly:
gh workflow run nightly
# Show last release date (of hledger package). # Show last release date (of hledger package).
@reldate: @reldate:
awk '/^#+ +[0-9]+\.[0-9].*([0-9]{4}-[0-9]{2}-[0-9]{2})/{print $3;exit}' hledger/CHANGES.md awk '/^#+ +[0-9]+\.[0-9].*([0-9]{4}-[0-9]{2}-[0-9]{2})/{print $3;exit}' hledger/CHANGES.md
@ -1568,7 +1576,7 @@ reltags:
reltags-push VER: reltags-push VER:
git push origin {{ VER }} hledger-{{ VER }} hledger-lib-{{ VER }} hledger-ui-{{ VER }} hledger-web-{{ VER }} git push origin {{ VER }} hledger-{{ VER }} hledger-lib-{{ VER }} hledger-ui-{{ VER }} hledger-web-{{ VER }}
# Tag the new dev cycle start and update version strings/manuals. Run on master. VER should be a dev version like A.B.99. # Tag the start of the new dev cycle, and update version strings/manuals. Run on master. VER should be a dev version like A.B.99.
@devtag VER: @devtag VER:
set -euo pipefail set -euo pipefail
just _on-master-branch just _on-master-branch
@ -1578,13 +1586,18 @@ reltags-push VER:
./Shake manuals -c ./Shake manuals -c
echo "master's tag, version strings and manuals have been updated to {{ VER }}." echo "master's tag, version strings and manuals have been updated to {{ VER }}."
# Push the dev tag configured in .version. Run on master after just devtag. # Push the dev tag configured in .version. Run on master after devtag.
devtag-push: devtag-push:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
just _on-master-branch just _on-master-branch
git push origin $(cat .version) git push origin $(cat .version)
# Move the nightly tag (base for the "nightly" prerelease) to the given REF, and force push it to github. REF should be the same as the dev cycle tag perhaps.
nightlytag REF:
git tag -f nightly {{ REF }} && git push -f origin nightly
# Unfortunately, with this name github releases page shows it below the latest release.
# List git tags approximately most recent first (grouped by package). The available fields vary over time. # List git tags approximately most recent first (grouped by package). The available fields vary over time.
tags: tags:
git tag -l --sort=-tag --format='%(refname:short) taggerdate:%(taggerdate:iso8601) committerdate:%(committerdate:iso8601)}' git tag -l --sort=-tag --format='%(refname:short) taggerdate:%(taggerdate:iso8601) committerdate:%(committerdate:iso8601)}'