Skip to content

Commit a5c7417

Browse files
authored
run checkout command twice, once per needed branch
this was originally cloning main and then gh-pages, restoring this behavior (but using the checkout step rather than manually git calls) since the environment.yml file stored in main is needed for later steps
1 parent 10619d6 commit a5c7417

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
shell: bash -l {0}
1717
steps:
1818
- uses: actions/checkout@v2
19-
with:
20-
ref: gh-pages
21-
path: build/html
2219
- name: Setup Mambaforge Python 3.7
2320
uses: conda-incubator/setup-miniconda@v2
2421
with:
@@ -46,6 +43,10 @@ jobs:
4643
cd RMG-Py
4744
sed -i '/embedsignature/s/# //g' setup.py
4845
make
46+
- uses: actions/checkout@v2
47+
with:
48+
ref: gh-pages
49+
path: build/html
4950
- name: Make documentation - for testing
5051
if: ${{ github.event_name != 'push' || github.repository != 'ReactionMechanismGenerator/RMG-Py' }}
5152
run: |

0 commit comments

Comments
 (0)