55 # Runs on pushes targeting the default branch
66 push :
77 branches : ["main"]
8+ workflow_dispatch :
9+ schedule :
10+ - cron : ' 0 6 * * 1' # Rebuild every Monday 6am UTC (picks up new extension READMEs, releases)
811
912 # Allows you to run this workflow manually from the Actions tab
1013 workflow_dispatch :
@@ -21,23 +24,35 @@ concurrency:
2124 group : " pages"
2225 cancel-in-progress : false
2326
27+
2428jobs :
25- # Single deploy job since we're just deploying
29+ build :
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@v4
33+ - uses : actions/setup-node@v4
34+ with :
35+ node-version : 20
36+ cache : npm
37+ - run : npm ci
38+ - name : Generate extension pages
39+ run : node scripts/generate-extension-pages.mjs
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ - name : Generate LLM files
43+ run : npm run generate:llm
44+ - name : Build VitePress
45+ run : npm run docs:build
46+ - uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : docs/.vitepress/dist
49+
2650 deploy :
51+ needs : build
52+ runs-on : ubuntu-latest
2753 environment :
2854 name : github-pages
2955 url : ${{ steps.deployment.outputs.page_url }}
30- runs-on : ubuntu-latest
3156 steps :
32- - name : Checkout
33- uses : actions/checkout@v4
34- - name : Setup Pages
35- uses : actions/configure-pages@v5
36- - name : Upload artifact
37- uses : actions/upload-pages-artifact@v3
38- with :
39- # Upload entire repository
40- path : ' .'
41- - name : Deploy to GitHub Pages
42- id : deployment
43- uses : actions/deploy-pages@v5
57+ - id : deployment
58+ uses : actions/deploy-pages@v4
0 commit comments