mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor documentation deployment workflow to separate hidden and visible deployments
This commit is contained in:
parent
454adaf0cc
commit
800f7a36b8
1 changed files with 8 additions and 4 deletions
12
.github/workflows/push-doc.yml
vendored
12
.github/workflows/push-doc.yml
vendored
|
|
@ -38,11 +38,15 @@ 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
|
||||
- name: Deploy documentation (hidden)
|
||||
if: inputs.HIDDEN == true
|
||||
run: mike props ${{ inputs.VERSION }} --set hidden=true
|
||||
run: |
|
||||
mike deploy --update-aliases --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
|
||||
mike set-hidden ${{ inputs.VERSION }} true
|
||||
mike push
|
||||
- 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'
|
||||
run: mike set-default --push latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue