Files
fastapi-users/.github/workflows/documentation.yml
dependabot[bot] 7f80895ff1 Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 17:26:03 +02:00

38 lines
1.0 KiB
YAML

name: Update documentation
on:
push:
tags:
- "*"
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.9
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build
run: hatch run mkdocs build
- name: Parse tag
id: version_tag
uses: battila7/get-version-action@v2
- name: Deploy
env:
DOC_TAG: ${{ steps.version_tag.outputs.major && steps.version_tag.outputs.minor && format('{0}.{1} latest', steps.version_tag.outputs.major, steps.version_tag.outputs.minor) || 'dev' }}
run: |
git config user.name fastapi-users-ci
git config user.email fastapi-users-ci@francoisvoron.com
git fetch origin gh-pages --depth=1
hatch run mike deploy --push --update-aliases ${{ env.DOC_TAG }}