Skip to content

Commit

Permalink
Troubleshooting commit (to revert later): Modify Github workflow so t…
Browse files Browse the repository at this point in the history
…hat test and publish actions are inverted

Also sets --dry-run to the git push step. This step is only to help troubleshoot the source of RMG docs build issues
  • Loading branch information
jonwzheng committed Feb 28, 2024
1 parent 0419c44 commit 49b50fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ jobs:
- name: Make documentation - for testing
if: ${{ github.event_name != 'push' || github.repository != 'ReactionMechanismGenerator/RMG-Py' }}
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
cd documentation
sphinx-build -b html -d build/doctrees/ source/ build/html -w errors.log -W --keep-going
make html
- name: Report documentation errors
if: ${{ failure() }}
run: |
cat documentation/errors.log
- name: Make documentation - to publish
if: ${{ github.event_name == 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }}
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
cd documentation
make html
sphinx-build -b html -d build/doctrees/ source/ build/html -w errors.log -W --keep-going
- name: Check documentation links
continue-on-error: true
run: |
Expand All @@ -72,4 +72,4 @@ jobs:
if: ${{ github.event_name == 'push' && github.repository == 'ReactionMechanismGenerator/RMG-Py' }}
run: |
touch build/html/.nojekyll
cd build/html; git add -A .; git commit -m "Automated documentation rebuild"; git push origin gh-pages
cd build/html; git add -A .; git commit -m "Automated documentation rebuild"; git push --dry-run origin gh-pages

0 comments on commit 49b50fc

Please sign in to comment.