-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Setup Justfile to replace Wiki checklist in cutting releases
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set ignore-comments := true | ||
set shell := ["zsh", "+o", "nomatch", "-ecu"] | ||
set unstable := true | ||
set script-interpreter := ["zsh", "+o", "nomatch", "-eu"] | ||
|
||
_default: | ||
@just --list --unsorted | ||
|
||
[private] | ||
[doc('Block execution if Git working tree isn’t pristine.')] | ||
pristine: | ||
# Ensure there are no changes in staging | ||
git diff-index --quiet --cached HEAD || exit 1 | ||
# Ensure there are no changes in the working tree | ||
git diff-files --quiet || exit 1 | ||
|
||
release semver: pristine | ||
sed -i -e "/image:/s/:v.*/:v{{semver}}/" action.yml | ||
make rockspecs/fontproof-{{semver}}-1.rockspec | ||
git add action.yml README.md rockspecs/fontproof-{{semver}}-1.rockspec | ||
git commit -m "chore: Release {{semver}}" | ||
git tag v{{semver}} | ||
git push --tags | ||
git push | ||
luarocks pack rockspecs/fontproof-{{semver}}-1.rockspec | ||
gh release create v{{semver}} -t "FontProof v{{semver}}" fontproof-{{semver}}-1.src.rock | ||
|
||
# vim: set ft=just |