Skip to content

Commit 5e9cc96

Browse files
committed
Pages workflow: do not let setup-typst pre-compile page.typ
setup-typst warms its package cache by compiling the file named in cache-dependency-path, without the --input values page.typ needs, so the deploy failed before the site build ran. The cmarker package is fetched by the first compile in build.py instead.
1 parent de7c739 commit 5e9cc96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/pages.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
- uses: actions/setup-python@v7
3636
with:
3737
python-version: "3.12"
38+
# No cache-dependency-path: the action would pre-compile page.typ without its --input values and fail.
39+
# build.py downloads the cmarker package on the first compile instead.
3840
- uses: typst-community/setup-typst@v5
3941
with:
4042
typst-version: "0.14.2"
41-
cache-dependency-path: site/page.typ
4243
- run: pip install pygments==2.19.2
4344
# The committed charts must match the data: a stale chart or explorer fails the deploy.
4445
- name: Check the committed charts against the data

0 commit comments

Comments
 (0)