Skip to content

Commit bb9148c

Browse files
authored
🎨 publish report to GitHub Pages (#51)
* 🎨 publish report to gh_pages branch * 🎨 test to only publish new report upon new release
1 parent 5c1dad4 commit bb9148c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test documentation building (until it's moved to ReadTheDocs)
1+
name: Test documentation building, and publish report to GitHub Pages
22

33
on:
44
push:
@@ -35,6 +35,16 @@ jobs:
3535
run: |
3636
cd docs
3737
sphinx-build -n --keep-going -b html ./ ./_build/
38+
- name: Rename entry point of report to index.html
39+
run: |
40+
mv docs/quarto_report/quarto_report.html docs/quarto_report/index.html
41+
- name: Publish html report to github pages
42+
# Only publish a new static report upon a new release -> can be changed.
43+
if: startsWith(github.ref, 'refs/tags')
44+
uses: peaceiris/actions-gh-pages@v4
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: docs/quarto_report/
3848
# - name: save artifacts
3949
# uses: actions/upload-artifact@v4
4050
# with:

0 commit comments

Comments
 (0)