@@ -13,23 +13,27 @@ jobs:
1313 - name : Check out repository
1414 uses : actions/checkout@v4
1515
16- - name : Install dependencies
16+ - name : Set up Python 3.12
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.12'
20+ cache : ' uv'
21+
22+ - name : Install dependencies with uv
1723 run : |
1824 pip install uv
1925 uv sync
2026
2127 - name : Set up Quarto
2228 uses : quarto-dev/quarto-actions/setup@v2
2329
24- - name : Activate virtual environment
25- run : source .venv/bin/activate
26-
2730 - name : Render and Publish
2831 uses : quarto-dev/quarto-actions/publish@v2
2932 with :
3033 path : book
3134 target : quarto-pub
3235 QUARTO_PUB_AUTH_TOKEN : ${{ secrets.QUARTO_PUB_AUTH_TOKEN }}
36+
3337 build-deploy-to-gh :
3438 runs-on : ubuntu-latest
3539 permissions :
@@ -38,16 +42,19 @@ jobs:
3842 - name : Check out repository
3943 uses : actions/checkout@v4
4044
41- - name : Install dependencies
45+ - name : Set up Python 3.12
46+ uses : actions/setup-python@v5
47+ with :
48+ python-version : ' 3.12'
49+ cache : ' uv'
50+
51+ - name : Install dependencies with uv
4252 run : |
4353 pip install uv
4454 uv sync
45-
55+
4656 - name : Set up Quarto
4757 uses : quarto-dev/quarto-actions/setup@v2
48-
49- - name : Activate virtual environment
50- run : source .venv/bin/activate
5158
5259 - name : Render and Publish
5360 uses : quarto-dev/quarto-actions/publish@v2
0 commit comments