-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (45 loc) · 1.16 KB
/
mkdocs.yaml
File metadata and controls
52 lines (45 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: mkdocs
on:
pull_request:
push:
branches:
- main
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
outputs:
page_artifact_id: ${{ steps.upload.outputs.artifact_id }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- run: uv sync --frozen --only-group mkdocs
- run: uv run mkdocs build --strict
- uses: actions/upload-pages-artifact@v4
with:
name: github-pages
path: site
retention-days: "3"
deploy:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
with:
artifact_name: github-pages
preview: false