Skip to content

Commit

Permalink
github-actions/pnl-ci-docs: Force creation of temporary version tag (#…
Browse files Browse the repository at this point in the history
…2192)

Cleanup the tag if the documentation build fails.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
  • Loading branch information
jvesely authored Nov 9, 2021
1 parent 21033d2 commit 736fccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pnl-ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ jobs:
- name: Add git tag
# The generated docs include PNL version,
# set it to a fixed value to prevent polluting the diff
if: ${{ github.event_name == 'pull_request' }}
run: git tag 'v999.999.999.999'
if: github.event_name == 'pull_request'
run: git tag --force 'v999.999.999.999'

- name: Build Documentation
run: make -C docs/ html -e SPHINXOPTS="-aE -j auto"

- name: Remove git tag
# The generated docs include PNL version,
# This was set to a fixed value to prevent polluting the diff
if: ${{ github.event_name == 'pull_request' }}
if: github.event_name == 'pull_request' && always()
run: git tag -d 'v999.999.999.999'

- name: Upload Documentation
Expand Down

0 comments on commit 736fccf

Please sign in to comment.