-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.52 KB
/
docs.yaml
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
53
54
55
name: Docs
run-name: Re-create docs on Gihub pages from tagged commit
# -- Trigger Events --------------------------------------------------------------------------------
on:
workflow_dispatch:
push:
tags:
- v*
# -- Concurrency -----------------------------------------------------------------------------------
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}s
# -- Jobs ------------------------------------------------------------------------------------------
jobs:
#Build documentation and upload as artifact
build-docs:
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout code
id: checkout-code
uses: actions/checkout@v4
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
id: install-deps
run: uv sync --only-group docs
- name: Build MkDocs documentation
id: build-docs
run: uv run mkdocs build
- name: Upload static files as artifact
id: upload_artifact
uses: actions/upload-pages-artifact@v3
with:
path: site/
# Deploy documentation artifact to Github Pages
deploy-docs:
runs-on: ubuntu-latest
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: release
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4