11name : Quarto documentation
22on :
33 push :
4- branches : [master ]
4+ branches : [main, release/v1.0 ]
55 tags : [v*]
66 pull_request :
77
@@ -22,12 +22,12 @@ jobs:
2222 contents : write
2323 steps :
2424 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25- - uses : julia-actions/cache@a45e8fa8be21c18a06b7177052533149e61e9b38 # v3.1 .0
26- - uses : prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0
25+ - uses : julia-actions/cache@a7bed9df697e5d7309d68afe7542a87621a8b6c8 # v3.3 .0
26+ - uses : prefix-dev/setup-pixi@f00437f565399d418b0acc85936d12c1fb668347 # v0.10.1
2727 with :
2828 pixi-version : " latest"
29- - name : Prepare pixi
30- run : pixi run install-ci
29+ - name : Instantiate Julia project
30+ run : pixi run instantiate-julia docs
3131
3232 - name : Check Quarto installation and all engines
3333 run : pixi run quarto-check
4646 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4747
4848 - name : Publish Quarto Project as dev
49- if : github.event_name == 'push' && github.ref == 'refs/heads/master '
49+ if : github.event_name == 'push' && github.ref == 'refs/heads/main '
5050 uses : peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
5151 with :
5252 github_token : ${{ secrets.GITHUB_TOKEN }}
5555 env :
5656 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5757
58+ - name : Publish Quarto Project as v1.0
59+ if : github.event_name == 'push' && github.ref == 'refs/heads/release/v1.0'
60+ uses : peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
61+ with :
62+ github_token : ${{ secrets.GITHUB_TOKEN }}
63+ publish_dir : ./docs/_site
64+ destination_dir : v1.0
65+ env :
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67+
5868 - name : Publish Quarto Project as version
5969 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
6070 uses : peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
0 commit comments