mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-13 16:54:47 +03:00
Merge 91cf754d62
into c0166d95bb
This commit is contained in:
commit
7930c28935
29
.github/workflows/mkdocs-deploy.yml
vendored
Normal file
29
.github/workflows/mkdocs-deploy.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: mkdocs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- docs/**
|
||||||
|
- docs_theme/**
|
||||||
|
- requirements/requirements-documentation.txt
|
||||||
|
- mkdocs.yml
|
||||||
|
- .github/workflows/mkdocs-deploy.yml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment: github-pages
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: git fetch --no-tags --prune --depth=1 origin gh-pages
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
- run: pip install -r requirements/requirements-documentation.txt
|
||||||
|
- run: mkdocs gh-deploy
|
Loading…
Reference in New Issue
Block a user