-
Notifications
You must be signed in to change notification settings - Fork 275
43 lines (37 loc) · 1.02 KB
/
Copy pathstatic-gh-pages.yml
File metadata and controls
43 lines (37 loc) · 1.02 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
name: publish documentation
on:
push:
branches:
- master
jobs:
docs_to_gh-pages:
runs-on: ubuntu-latest
name: publish documentation
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: '3.10'
- name: Install the project
run:
uv sync --group=doc
- name: make docs
run: |
cd docs
uv run --no-sync make html
- name: Init repo for generated files
run: |
cd docs/_build/html
git init
touch .nojekyll
git add --all
git config --local user.email "compressai@interdigital.com"
git config --local user.name "CompressAI"
git commit -m "deploy"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html