-
Notifications
You must be signed in to change notification settings - Fork 82
49 lines (39 loc) · 1.03 KB
/
docs.yaml
File metadata and controls
49 lines (39 loc) · 1.03 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
name: Algorithm Docs Generation
permissions:
contents: read
pull-requests: read
on:
workflow_dispatch:
push:
branches:
- main
concurrency:
group: ci-${{ github.repository }}-docs-${{ github.ref }}
cancel-in-progress: true
jobs:
generate-docs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/setup-uv-project
- name: Run generation script
run: python docs/utils/gen_docs.py
- name: Verify generated file exists
run: |
if [ ! -f compression.rst ]; then
echo "Error: Generated file 'compression.rst' not found!"
exit 1
fi
- name: Upload generated file
uses: actions/upload-artifact@v6
with:
name: compression-rst
path: compression.rst