diff --git a/.github/workflows/docs-ci.yml b/.github/workflows/docs-ci.yml index c57d225af59..c0d63703216 100644 --- a/.github/workflows/docs-ci.yml +++ b/.github/workflows/docs-ci.yml @@ -34,11 +34,19 @@ jobs: needs: [javadoc, typedoc, pydoc, cppdoc, rdoc, protodoc] runs-on: ubuntu-24.04 steps: + - name: Setup Git + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fixes Bug: https://github.com/actions/checkout/issues/1471 + fetch-tags: true + - name: Make Symlinks run: | + VERSION=$(basename ${{ github.ref_name }}) + LATEST=$((git tag -l && echo "${VERSION}") | grep -E '^v[0-9]+([.][0-9]+){2}$' | sort --version-sort | tail -1) mkdir -p tmp-deephaven-core-v2/symlinks cd tmp-deephaven-core-v2/symlinks - ln -s ../${{ github.ref_name }} latest + ln -s ../release/${LATEST} latest ln -s ../main next - name: Deploy Symlinks