mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor documentation deployment steps for clarity and improved functionality
This commit is contained in:
parent
f25ba38eec
commit
e613148a29
1 changed files with 2 additions and 4 deletions
6
.github/workflows/push-doc.yml
vendored
6
.github/workflows/push-doc.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue