-
-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (28 loc) · 697 Bytes
/
Copy pathdocs.yaml
File metadata and controls
36 lines (28 loc) · 697 Bytes
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
name: Docs
on:
push:
branches: [main]
release:
types: [released]
pull_request:
types: [opened, synchronize]
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- name: Setup Python
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
- name: Install Dependencies
run: uv sync
- name: Add venv to PATH
run: echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
# NOTE: Otherwise the next action nukes the path when it starts
- name: Ape Docs
uses: apeworx/sphinx-ape@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}