File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy Docs to GitHub Pages
22
33on :
4- # Rebuild when the docs site or this workflow changes on main.
54 push :
65 branches : [main]
76 paths :
8- - " docs-site /**"
7+ - " docs/**"
98 - " .github/workflows/deploy-docs.yml"
10- # Allow manual runs from the Actions tab.
119 workflow_dispatch :
1210
13- # Least-privilege token needed to publish to GitHub Pages.
1411permissions :
1512 contents : read
1613 pages : write
1714 id-token : write
1815
19- # Never run two Pages deploys at once; let an in-flight deploy finish.
2016concurrency :
2117 group : pages
2218 cancel-in-progress : false
2319
2420jobs :
25- build :
26- runs-on : ubuntu-latest
27- steps :
28- - name : Checkout
29- uses : actions/checkout@v7
30- - name : Build with Astro
31- uses : withastro/action@v3
32- with :
33- path : ./docs-site
34- node-version : 22 # Astro 6 requires Node >= 22.12.0 (the action defaults to 20)
35- package-manager : bun@latest
36-
3721 deploy :
38- needs : build
3922 runs-on : ubuntu-latest
4023 environment :
4124 name : github-pages
4225 url : ${{ steps.deployment.outputs.page_url }}
4326 steps :
27+ - name : Checkout
28+ uses : actions/checkout@v7
29+ - name : Upload Pages artifact
30+ uses : actions/upload-pages-artifact@v3
31+ with :
32+ path : docs
4433 - name : Deploy to GitHub Pages
4534 id : deployment
4635 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments