Files
fastapi-users/.github/workflows/documentation.yml
dependabot[bot] 32cd433e99 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-19 08:27:12 +01: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@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- 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 }}