forked from pyxnat/pyxnat
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 826 Bytes
/
docs.yml
File metadata and controls
32 lines (29 loc) · 826 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
name: docs
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.10']
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v4
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v4
- run: python --version
- run: python -m pip install --upgrade pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install sphinx
run: pip install sphinx sphinx-rtd-theme
- name: Build and deploy to GitHub Pages
run: ./build-docs.sh
env:
PYTHONPATH: $PYTHONPATH:$(pwd)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}