Skip to content

Commit c2145fb

Browse files
committed
update package.sh for more automation
1 parent b9adc05 commit c2145fb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

package.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,18 @@ tar_args=$(while IFS= read -r line; do echo " --exclude=$line"; done <<<"$exclud
66
version=$(awk '/version =/ {print $3}' typst.toml | sed 's/"//g')
77
tar_args+=" --exclude-vcs-ignores -czf ../glossarium-$version.tar.gz ."
88
tar $tar_args
9-
tar -tf ../glossarium-$version.tar.gz
9+
tar -tf ~/glossarium-$version.tar.gz
10+
cd ~
11+
rm packages
12+
git clone --depth 1 --no-checkout --filter="tree:0" [email protected]:typst/packages
13+
cd packages
14+
git sparse-checkout init
15+
git sparse-checkout set packages/preview/glossarium
16+
git checkout main
17+
mkdir packages/previw/glossarium/$version
18+
tar -xvf ~/glossarium-$version.tar.gz -C packages/preview/glossarium/$version
19+
git add packages
20+
git commit
21+
gh repo fork
22+
gh repo set-default typst/packages
23+
gh pr create --fill

0 commit comments

Comments
 (0)