Skip to content

Commit 97a612e

Browse files
committed
Add doc deployment job
1 parent 04383e0 commit 97a612e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/docs.yml

+17-1
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:
@@ -33,3 +33,19 @@ jobs:
3333
with:
3434
name: docs
3535
path: docs/_build
36+
37+
upload-docs:
38+
name: Upload docs to GitHub pages
39+
runs-on: ubuntu-latest
40+
needs: build-docs
41+
steps:
42+
- uses: actions/download-artifact@v3
43+
with:
44+
name: docs
45+
46+
- name: Push to GitHub pages
47+
uses: peaceiris/actions-gh-pages@v3
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./docs/_build/html
51+
destination_dir: dev

0 commit comments

Comments
 (0)