-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.57 KB
/
docs.yml
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
58
59
60
61
62
63
64
65
66
67
on:
push:
paths:
- docs/**
- mkdocs.yml
- pyproject.toml
- .github/workflows/docs.yml
workflow_dispatch:
jobs:
build:
name: Bulid Documentation
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Set Up Git Credentials
uses: de-vri-es/setup-git-credentials@v2
with:
credentials: https://username:${{ secrets.GH_PAT }}@github.com
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Set Up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install Python
run: uv python install
- name: Install Dependencies
run: uv sync --only-group docs
- name: Build Documentation
run: uv run icl install && uv run mkdocs build
env:
FONTAWESOME_PKG_TOKEN: ${{ secrets.FONTAWESOME_PKG_TOKEN }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: site
path: site
deploy:
name: Deploy Documentation
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: site
path: site
- name: Deploy to Vercel
run: npx vercel --token ${{ secrets.VERCEL_TOKEN }} --yes --prod
working-directory: site
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}