forked from RotorHazard/community-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.37 KB
/
deploy-docs.yaml
File metadata and controls
57 lines (52 loc) · 1.37 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
53
54
55
56
57
---
# This workflow will build and deploy the documentation to GitHub Pages
name: Deployment
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
env:
DEFAULT_PYTHON: "3.13"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.2.2
- name: 🏗 Set up UV
uses: astral-sh/setup-uv@v6.0.1
with:
version: "latest"
python-version: ${{ env.DEFAULT_PYTHON }}
- name: 🏗 Install dependencies
run: uv sync --group docs
- name: 🏗 Build documentation
run: uv run mkdocs build
- name: ⬆️ Upload pages artifacts
uses: actions/upload-pages-artifact@v3.0.1
with:
path: site
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 🏗️ Setup Github Pages
uses: actions/configure-pages@v5.0.0
- name: 🚀 Deploy to Github Pages
uses: actions/deploy-pages@v4.0.5
id: deployment