Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Docs ci condition on latest link #5615

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,23 @@ jobs:
needs: [javadoc, typedoc, pydoc, cppdoc, rdoc]
runs-on: ubuntu-22.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
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
stanbrub marked this conversation as resolved.
Show resolved Hide resolved

- name: Make Symlinks
run: |
VERSION=$(basename ${{ github.ref_name }})
git tag -a -m "[Temp Tag] ${VERSION}" ${VERSION} release/${VERSION}
LATEST=$(git tag --sort="version:refname" | grep -E "^v([0-9]+[.]?){3}$" | 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
Expand Down
Loading