-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (41 loc) · 1.06 KB
/
upload-gh-pages.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
50
name: upload-docs
on:
push:
branches:
- "master"
env:
PYTHON_VERSION: "3.11.3"
PUBLISH_DIR: "./docs/api"
PUBLISH_BRANCH: "gh-pages"
DESTINATION_DIR: "api"
defaults:
run:
shell: bash
jobs:
upload-doc:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip
- name: Install libraries for ubuntu
run: |
sudo apt-get update
sudo apt-get install libsndfile1
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- name: Make documents
run: |
python make_docs.py
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.PUBLISH_DIR }}
publish_branch: ${{ env.PUBLISH_BRANCH }}
destination_dir: ${{ env.DESTINATION_DIR }}