File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch :
77 push :
88 branches :
9- - dev
9+ - main
1010
1111jobs :
1212
@@ -17,16 +17,10 @@ jobs:
1717 - name : Checkout main
1818 uses : actions/checkout@v3
1919 with :
20- path : dev
20+ path : repo
2121 fetch-depth : 0
2222 fetch-tags : true
2323
24- - name : Checkout gh-pages-dev
25- uses : actions/checkout@v3
26- with :
27- path : gh-pages-dev
28- ref : gh-pages-dev
29-
3024 - name : Set up Python
3125 uses : actions/setup-python@v4
3226 with :
@@ -35,22 +29,31 @@ jobs:
3529
3630 - name : Install dependencies
3731 run : |
38- cd ./dev
32+ cd ./repo
3933 python -m pip install .[docs]
34+
4035 - name : Create local branches
4136 run : |
42- cd ./dev
37+ cd ./repo
4338 git branch main remotes/origin/main
39+
4440 - name : Make the Sphinx docs
4541 run : |
46- cd ./dev /docsrc
42+ cd ./repo /docsrc
4743 make clean
4844 make docs-sequential
45+
46+ - name : Checkout gh-pages-dev
47+ uses : actions/checkout@v3
48+ with :
49+ path : gh-pages-dev
50+ ref : gh-pages-dev
51+
4952 - name : Commit changes to docs
5053 run : |
5154 cd ./gh-pages-dev
5255 git rm --quiet -rf .
53- cp -R ../dev /docs/* ./
56+ cp -R ../repo /docs/* ./
5457 git config --local user.email ""
5558 git config --local user.name "github-actions"
5659 git add -A
Original file line number Diff line number Diff line change 55 pull_request :
66 branches :
77 - dev
8+ - main
89
910jobs :
1011 build_docs :
You can’t perform that action at this time.
0 commit comments