Skip to content

Commit 03036b8

Browse files
committed
Add workflow for blog deploy back in
1 parent dde67b4 commit 03036b8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)