Separate tag-based and branch-based documentation deployment

Updated the workflow to deploy documentation with `latest` alias only on tagged refs, while regular deployments occur for branches without updating aliases. This ensures proper versioning and prevents unintended alias updates.
This commit is contained in:
Christoph Haas 2025-05-13 20:01:33 +02:00
parent a8fb4365cf
commit 78deede360

View File

@ -28,7 +28,7 @@ jobs:
- name: Publish documentation
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: mike deploy --push
run: mike deploy --push ${{ github.ref_name }}
env:
GIT_COMMITTER_NAME: "github-actions[bot]"
GIT_COMMITTER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"