Skip to content

Commit be9466c

Browse files
authored
Merge pull request #172 from matplotlib/sam-not-fork/doc-deployment-job
Add doc deployment job
2 parents e6446fc + c9cbdbf commit be9466c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Diff for: .github/workflows/docs.yml

+16-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:
@@ -35,3 +35,18 @@ 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/checkout@v3
45+
- uses: actions/download-artifact@v3
46+
with:
47+
name: docs
48+
49+
- name: Push to GitHub pages
50+
uses: JamesIves/github-pages-deploy-action@v4
51+
with:
52+
folder: html

0 commit comments

Comments
 (0)