-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.8 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: Docs Preview Build
on:
push:
branches-ignore:
- "main"
jobs:
docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Cython==3.0.0a11 --install-option="--no-cython-compile"
python setup.py egg_info
pip install `grep -v '^\[' rubato.egg-info/requires.txt`
- name: Build Docs
run: ./b docs
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:
publish-dir: "./docs/build/html"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
alias: ${{ github.head_commit }}
github-deployment-environment: Preview-${{ github.ref }}
github-deployment-description: "Preview build for ${{ github.ref }}"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1