Skip to content

Commit 39b931d

Browse files
committed
chore: CI/CDのPythonのセットアップをmiseに変更
1 parent 987172b commit 39b931d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
with:
1616
toolchain: '1.77'
1717
- uses: Swatinem/rust-cache@v2
18-
# python3 and package jinja2
19-
- uses: actions/setup-python@v2
20-
with:
21-
python-version: 3.x
22-
- run: python3 -m pip install jinja2 PyYAML
18+
- uses: jdx/mise-action@v2
19+
- run: |
20+
source .venv/bin/activate
21+
echo PATH=$PATH >> $GITHUB_ENV
22+
- run: uv sync --locked
2323
- run: cargo test --package typst-docs --lib -- tests::test_docs --exact --nocapture
24-
- run: python3 ./gen.py
24+
- run: python ./gen.py
2525
# deploy ./dist to https://github.com/typst-doc-cn/typst-doc-cn.github.io
2626
- name: Deploy
2727
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)