Update push doc workflow to edit the version after deploying it

This commit is contained in:
Théophile Diot 2025-01-10 08:48:03 +01:00
parent 851b0ff806
commit 454adaf0cc
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -38,11 +38,11 @@ jobs:
python-version: "3.10"
- name: Install doc dependencies
run: pip install --no-cache-dir --require-hashes -r docs/requirements.txt && sudo apt install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
- name: Push doc
run: mike deploy --update-aliases --push --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
- name: Hide doc
if: inputs.HIDDEN == true
run: mike props ${{ inputs.VERSION }} --set hidden=true
- name: Push doc
run: mike deploy --update-aliases --push --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
- name: Set default doc
if: inputs.ALIAS == 'latest'
run: mike set-default --push latest