Skip to content

Update update_versions.yml #45

Update update_versions.yml

Update update_versions.yml #45

name: Generate [version] documentation
on:
push:
branches:
- 'v*.*.*'
jobs:
build_docs:
name: Generate [version] documentation
runs-on: ubuntu-latest
steps:
- name: Checkout source files
uses: actions/checkout@v5
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: 3.11
architecture: x64
cache: 'pip'
cache-dependency-path: './requirements.txt'
- name: Install Python dependencies
run: python3 -m pip install -r ./requirements.txt
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Deploy with mike
run: |
mike deploy --push --update-aliases ${{ steps.extract_branch.outputs.branch }} latest