Skip to content

Commit

Permalink
Proper version on website
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Jan 28, 2024
1 parent 294efaa commit c36c5fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
steps:
- name: Checkout main repository
uses: actions/checkout@v3

- name: Get git tags
#Also get the tags, to get proper version in docs:
run: git fetch --tags origin
#Note: We get all history and tags, so the version detection will always
#be able to yield vx.y.z for the main website:
with:
fetch-depth: 0

- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
Expand All @@ -53,7 +53,9 @@ jobs:

- name: Build documentation
#NB: -W to turn warnings into errors:
run: make html SPHINXOPTS="-W"
#NB: SIMPLEBUILD_GITVERSION_USE_LATEST_VTAG=1 to show vx.y.z on website,
#even if making additional commits (e.g. with updates for workflows).
run: SIMPLEBUILD_GITVERSION_USE_LATEST_VTAG=1 make html SPHINXOPTS="-W"
working-directory: ./doc/

# - name: Debug
Expand Down

0 comments on commit c36c5fe

Please sign in to comment.