Refactor documentation deployment steps for clarity and improved functionality

This commit is contained in:
Théophile Diot 2025-01-10 14:09:43 +01:00
parent f25ba38eec
commit e613148a29
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -38,14 +38,12 @@ 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: Deploy documentation (hidden)
- name: Set up hidden documentation
if: inputs.HIDDEN == true
run: |
mike deploy --update-aliases --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
mike set-hidden ${{ inputs.VERSION }} true
mike push
mike props ${{ inputs.VERSION }} --set hidden=true
- name: Deploy documentation
if: inputs.HIDDEN == false
run: mike deploy --update-aliases --push --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
- name: Set default doc
if: inputs.ALIAS == 'latest'