Skip to content

Commit aeb20f6

Browse files
dstansbysamcunliffe
authored andcommitted
Add doc deployment job
1 parent e6446fc commit aeb20f6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/docs.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build-and-upload:
9+
build-docs:
1010
name: Build & Upload Artifact
1111
runs-on: ubuntu-latest
1212
steps:
@@ -35,3 +35,19 @@ jobs:
3535
with:
3636
name: docs
3737
path: docs/_build
38+
39+
upload-docs:
40+
name: Upload docs to GitHub pages
41+
runs-on: ubuntu-latest
42+
needs: build-docs
43+
steps:
44+
- uses: actions/download-artifact@v3
45+
with:
46+
name: docs
47+
48+
- name: Push to GitHub pages
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: ./docs/_build/html
53+
destination_dir: dev

0 commit comments

Comments
 (0)