Skip to content

Commit ba3eed0

Browse files
committed
chore: Setup Justfile to replace Wiki checklist in cutting releases
1 parent 8d58fbd commit ba3eed0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Justfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
set ignore-comments := true
2+
set shell := ["zsh", "+o", "nomatch", "-ecu"]
3+
set unstable := true
4+
set script-interpreter := ["zsh", "+o", "nomatch", "-eu"]
5+
6+
_default:
7+
@just --list --unsorted
8+
9+
[private]
10+
[doc('Block execution if Git working tree isn’t pristine.')]
11+
pristine:
12+
# Ensure there are no changes in staging
13+
git diff-index --quiet --cached HEAD || exit 1
14+
# Ensure there are no changes in the working tree
15+
git diff-files --quiet || exit 1
16+
17+
release semver: pristine
18+
sed -i -e "/image:/s/:v.*/:v{{semver}}/" action.yml
19+
make rockspecs/fontproof-{{semver}}-1.rockspec
20+
git add action.yml README.md rockspecs/fontproof-{{semver}}-1.rockspec
21+
git commit -m "chore: Release {{semver}}"
22+
git tag v{{semver}}
23+
git push v{{semver}}
24+
git push
25+
luarocks pack rockspecs/fontproof-{{semver}}-1.rockspec
26+
gh release create v{{semver}} -t "FontProof v{{semver}}" fontproof-{{semver}}-1.src.rock
27+
28+
# vim: set ft=just

0 commit comments

Comments
 (0)