-
Notifications
You must be signed in to change notification settings - Fork 2
/
.justfile
34 lines (26 loc) · 855 Bytes
/
.justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
_default:
_get-version:
sh ./scripts/get-version.sh
_get-version-tag:
echo "v$(just _get-version)"
change-version tag:
sh ./scripts/change-version.sh {{tag}}
_generate-title:
sh ./scripts/generate-title.sh
_generate-notes:
sh ./scripts/generate-notes.sh
create-release: _add-tag
git push --tags
git push
gh release create "$(just _get-version-tag)" \
--title "$(just _generate-title)" \
--notes "$(just _generate-notes)"
_add-tag:
git checkout master
git tag "v$(grep '^version' typst.toml | cut -d ' ' -f 3 | tr -d '"')" HEAD
# The newly created directory (with content) is used for making a PR into the
# https://github.com/typst/packages repository.
make-PR-version:
version=$(just _get-version); \
mkdir "$version"; \
find -maxdepth 1 -type f -name '[^.]*' -print0 | xargs -0 -I {} -- cp -rf '{}' "$version"/