Skip to content

Commit 10619d6

Browse files
authored
fix checkout command for docs building action
Seems like after using the default git checkout github actions step, we can't use other git commands because of some nonsense with the ssh key. Rather than deal with figuring that out, I have just moved all of the weirdness we were doing in the git command to the original checkout command. I have also removed the `rm -rf build/html` command. That directory does not exist before the clone (I think this was carried over from a previous script, because it doesn't actually break anything).
1 parent 7bec814 commit 10619d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
shell: bash -l {0}
1717
steps:
1818
- uses: actions/checkout@v2
19+
with:
20+
ref: gh-pages
21+
path: build/html
1922
- name: Setup Mambaforge Python 3.7
2023
uses: conda-incubator/setup-miniconda@v2
2124
with:
@@ -58,8 +61,6 @@ jobs:
5861
git config user.name github-actions
5962
git config user.email [email protected]
6063
cd documentation
61-
rm -rf build/html
62-
git clone --single-branch --branch gh-pages --origin official [email protected]:ReactionMechanismGenerator/RMG-Py.git build/html
6364
make html
6465
- name: Check documentation links
6566
continue-on-error: true

0 commit comments

Comments
 (0)