Skip to content

Commit e4cc555

Browse files
committed
🐛 Template: Fix MyST Github Pages action
The automatically generated Github Pages action to deploy the MyST documentation was broken, because it assumes the content is in the root folder. Here we add the `working_directory` for the HTML build step and correct the `path` for the upload step.
1 parent bb9726d commit e4cc555

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/{% if doc_deploy == 'github' %}.github{% endif %}/workflows/{% if doc_deploy == 'github' and docs == 'myst' %}deploy-myst.yaml{% endif %}

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ jobs:
3636
run: npm install -g mystmd
3737
- name: Build HTML Assets
3838
run: myst build --html
39+
working-directory: docs
3940
- name: Upload artifact
4041
uses: actions/upload-pages-artifact@v3
4142
with:
42-
path: './_build/html'
43+
path: 'docs/_build/html'
4344
- name: Deploy to GitHub Pages
4445
id: deployment
4546
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)