Skip to content

Commit 158e411

Browse files
committed
update CI
1 parent e5d3bca commit 158e411

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

.github/workflows/myst_ci.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,67 @@
11
name: MyST GitHub Pages Deploy
2+
23
on:
34
push:
45
branches: [myst_build]
5-
# env:
6-
# BASE_URL: /${{ github.event.repository.name }}
76

87
permissions:
98
contents: read
109
pages: write
1110
id-token: write
11+
1212
concurrency:
1313
group: 'pages'
1414
cancel-in-progress: false
15+
1516
jobs:
1617
deploy:
1718
environment:
1819
name: github-pages
1920
url: ${{ steps.deployment.outputs.page_url }}
21+
2022
runs-on: ubuntu-latest
23+
2124
steps:
2225
- uses: actions/checkout@v4
23-
- name: Setup Pages
26+
27+
- name: Setup GitHub Pages
2428
uses: actions/configure-pages@v3
29+
2530
- name: Cache Notebook Execution
2631
uses: actions/cache@v3
2732
id: cache-execution
2833
with:
2934
path: ./lectures/_build/execute
3035
key: ${{ runner.os }}-execute-cache-${{ hashFiles('lectures/**/*.md') }}
36+
3137
- uses: actions/setup-node@v4
3238
with:
3339
node-version: 18.x
40+
3441
- name: Install Python
3542
if: steps.cache-execution.outputs.cache-hit != 'true'
3643
uses: actions/setup-python@v5
3744
with:
3845
python-version: '3.12'
3946
cache: 'pip'
4047
cache-dependency-path: 'myst_requirements.txt'
41-
- name: Install execution requirements for ipykernel and jupyter-server
48+
49+
- name: Install execution requirements
4250
if: steps.cache-execution.outputs.cache-hit != 'true'
4351
run: python -m pip install -r myst_requirements.txt
44-
shell: bash
45-
- name: Install MyST Markdown
52+
53+
- name: Install MyST Markdown CLI
4654
run: npm install -g mystmd
47-
- name: Build HTML Assets
55+
56+
- name: Build HTML
4857
working-directory: ./lectures
4958
run: myst build --html --execute
50-
- name: Upload artifact
59+
60+
- name: Upload build output
5161
uses: actions/upload-pages-artifact@v3
5262
with:
5363
path: './lectures/_build/html'
54-
- name: Deploy to gh-pages
55-
uses: peaceiris/actions-gh-pages@v3
56-
with:
57-
github_token: ${{ secrets.GITHUB_TOKEN }}
58-
publish_dir: lectures/_build/html
59-
# publish_branch: myst-build-test
64+
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)