File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # Build the MyST site and deploy to GitHub Pages
2+ name : Deploy
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+ schedule :
8+ # Rebuild daily at 1 AM Pacific
9+ - cron : ' 0 8 * * *'
10+
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ jobs :
17+ deploy :
18+ environment : github-pages
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : actions/configure-pages@v3
23+ - uses : actions/setup-node@v4
24+ with :
25+ node-version : 20.x
26+ - name : Install MyST Markdown
27+ run : npm install -g mystmd
28+ - name : Build the site
29+ run : cd docs && myst build --html
30+ env :
31+ BASE_URL : /blog
32+ - name : Upload artifact
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : ' ./docs/_build/html'
36+ - name : Deploy to GitHub Pages
37+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments