File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 22# From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml
33name : docs
44
5- # execute this workflow automatically when we push to master
5+ # execute this workflow automatically when we push to master or dev
66on :
77 push :
88 branches :
99 - master
10+ - dev
1011
1112jobs :
1213
@@ -17,13 +18,13 @@ jobs:
1718 - name : Checkout main
1819 uses : actions/checkout@v3
1920 with :
20- path : master
21+ path : dev
2122
2223 - name : Checkout gh-pages
2324 uses : actions/checkout@v3
2425 with :
25- path : gh-pages
26- ref : gh-pages
26+ path : gh-pages-dev
27+ ref : gh-pages-dev
2728
2829 - name : Set up Python
2930 uses : actions/setup-python@v4
@@ -33,17 +34,17 @@ jobs:
3334
3435 - name : Install dependencies
3536 run : |
36- cd ./master
37+ cd ./dev
3738 python -m pip install .[docs]
3839 - name : Make the Sphinx docs
3940 run : |
40- cd ./master /docsrc
41+ cd ./dev /docsrc
4142 make clean
4243 make github
4344 - name : Commit changes to docs
4445 run : |
45- cd ./gh-pages
46- cp -R ../master /docs/* ./
46+ cd ./gh-pages-dev
47+ cp -R ../dev /docs/* ./
4748 git config --local user.email ""
4849 git config --local user.name "github-actions"
4950 git add -A
You can’t perform that action at this time.
0 commit comments