File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy VitePress site to GitHub Pages
1+ name : Deploy Starlight site to GitHub Pages
22
33on :
44 push :
55 branches :
66 - master
77 paths :
88 - ' docs/**'
9+ - ' astro.config.mjs'
910 - ' .github/workflows/deploy-docs.yml'
1011 workflow_dispatch :
1112
@@ -24,13 +25,11 @@ jobs:
2425 steps :
2526 - name : Checkout
2627 uses : actions/checkout@v4
27- with :
28- fetch-depth : 0
2928
3029 - name : Setup Node.js
3130 uses : actions/setup-node@v4
3231 with :
33- node-version : 18
32+ node-version : ' lts/* '
3433 cache : npm
3534
3635 - name : Setup Pages
@@ -39,20 +38,23 @@ jobs:
3938 - name : Install dependencies
4039 run : npm ci
4140
42- - name : Build with VitePress
41+ - name : Build with Astro
4342 run : npm run docs:build
4443
4544 - name : Upload artifact
4645 uses : actions/upload-pages-artifact@v3
4746 with :
48- path : docs/.vitepress/ dist
47+ path : dist
4948
5049 deploy :
5150 needs : build
5251 runs-on : ubuntu-latest
5352 permissions :
5453 pages : write
5554 id-token : write
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
5658 steps :
5759 - name : Deploy to GitHub Pages
5860 id : deployment
You can’t perform that action at this time.
0 commit comments