-
Notifications
You must be signed in to change notification settings - Fork 249
87 lines (69 loc) · 2.16 KB
/
Copy pathdocumentation.yml
File metadata and controls
87 lines (69 loc) · 2.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Documentation
on:
workflow_dispatch:
workflow_call:
env:
HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
jobs:
parse_commit_info:
runs-on: ubuntu-latest
outputs:
deploy_to: ${{ steps.variables.outputs.deploy_to }}
commit_title: ${{ steps.variables.outputs.commit_title }}
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Copy build utils
run: cp -r .github/utils ../utils
- name: Decide where to deploy and create output variables
id: variables
run: |
python ../utils/please.py set_deploy_to
python ../utils/please.py set_commit_title
echo github.ref ${{ github.ref }}
- name: See outputs
run: |
echo deploy_to="${{ steps.variables.outputs.deploy_to }}"
echo commit_title="${{ steps.variables.outputs.commit_title }}"
build-documentation:
runs-on: ubuntu-latest
needs: parse_commit_info
strategy:
matrix:
python-version: [3.14]
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Install uv and set python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
- name: Install Documentation Dependencies
run: |
uv venv
make doc-dependencies
- name: Environment Information
run: |
ls -la
ls -la doc
uv pip list
- name: Build docs
run: make doc
- name: Environment Information
run: |
ls -la doc
ls -la doc/reference
cat doc/_variables.yml
- name: Deploy to Documentation to a Branch
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ needs.parse_commit_info.outputs.deploy_to != '' }}
with:
folder: doc/_site
branch: ${{ needs.parse_commit_info.outputs.deploy_to }}
commit-message: ${{ needs.parse_commit_info.outputs.commit_title }}