-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (38 loc) · 1.14 KB
/
docs.yml
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: Deploy Docs
on:
push:
branches:
- main
jobs:
build-deploy:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
working-directory: docs
run: make install
- name: Build and deploy to GitHub Pages
working-directory: docs
run: make deploy
# config for custom domain on gh-pages
# - name: Create and push CNAME file to gh-pages
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Actions"
# git checkout gh-pages
# echo "<domain>" > CNAME
# git add CNAME
# git commit -m "Add CNAME file"
# git push origin gh-pages