Skip to content

Commit

Permalink
chore: Setup Justfile to replace Wiki checklist in cutting releases
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 26, 2024
1 parent ced61f7 commit 4eaee44
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Justfile
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

0 comments on commit 4eaee44

Please sign in to comment.