mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
38 lines
1,017 B
YAML
38 lines
1,017 B
YAML
name: Push documentation (REUSABLE)
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
VERSION:
|
|
required: true
|
|
type: string
|
|
ALIAS:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
BUNKERBOT_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.BUNKERBOT_TOKEN }}
|
|
- name: Setup git user
|
|
run: |
|
|
git config --global user.name "BunkerBot"
|
|
git config --global user.email "bunkerbot@bunkerity.com"
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install doc requirements
|
|
run: pip install -r docs/requirements.txt
|
|
- name: Push doc
|
|
run: mike deploy --update-aliases --push ${{ inputs.VERSION }} ${{ inputs.ALIAS }}
|
|
- name: Set default doc
|
|
if: inputs.ALIAS == 'latest'
|
|
run: mike set-default --push latest
|