-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
36 lines (29 loc) · 753 Bytes
/
deploy-docs.yml
File metadata and controls
36 lines (29 loc) · 753 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: Deploy docs
on:
push:
tags: ['[0-9]+.[0-9]+.*']
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
TQDM_MININTERVAL: 10
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}
- uses: actions/checkout@v4
with:
fetch-depth: 3
- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: pip install -U pip setuptools wheel
- run: pip install -U -e .[doc,test]
- run: time doc/build.sh
- run: .github/deploy-gh-pages.sh
env:
GH_PASSWORD: ${{ secrets.GITHUB_TOKEN }}