Skip to content

Commit

Permalink
fix checkout command for docs building action
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
JacksonBurns authored Feb 5, 2024
1 parent 7bec814 commit 10619d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
path: build/html
- name: Setup Mambaforge Python 3.7
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down Expand Up @@ -58,8 +61,6 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
cd documentation
rm -rf build/html
git clone --single-branch --branch gh-pages --origin official git@github.com:ReactionMechanismGenerator/RMG-Py.git build/html
make html
- name: Check documentation links
continue-on-error: true
Expand Down

0 comments on commit 10619d6

Please sign in to comment.