mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](0b93645e9f...42375524e2)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
name: Push documentation (REUSABLE)
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
VERSION:
|
|
required: true
|
|
type: string
|
|
ALIAS:
|
|
required: true
|
|
type: string
|
|
HIDDEN:
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
secrets:
|
|
BUNKERBOT_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.BUNKERBOT_TOKEN }}
|
|
- name: Replace VERSION
|
|
if: inputs.VERSION == 'testing'
|
|
run: chmod +x ./misc/update-version.sh && ./misc/update-version.sh testing
|
|
- name: Setup git user
|
|
run: |
|
|
git config --global user.name "BunkerBot"
|
|
git config --global user.email "bunkerbot@bunkerity.com"
|
|
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
|
with:
|
|
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: Set up hidden documentation
|
|
if: inputs.HIDDEN == true
|
|
run: |
|
|
mike deploy --update-aliases --alias-type=copy ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
|
|
mike props ${{ inputs.VERSION }} --set hidden=true --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
|