-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (35 loc) · 995 Bytes
/
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
name: deploy-gh-pages
on:
push: {branches: [master]}
pull_request: {branches: [master]}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mode: ['build', 'check']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Set build options
run: echo 'SPHINXOPTS=-W --keep-going' >> $GITHUB_ENV
if: matrix.mode == 'check'
- name: Build
run: make -C docs html
- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master' && matrix.mode == 'build'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
cname: docs.openneuro.org