diff --git a/.github/workflows/publish-doc.yml b/.github/workflows/publish-doc.yml index 8d47f96..472f5de 100644 --- a/.github/workflows/publish-doc.yml +++ b/.github/workflows/publish-doc.yml @@ -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 @@ -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