-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (45 loc) · 1.18 KB
/
spaceros.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
51
52
53
54
55
name: Build Space ROS docs
on:
push:
branches:
- rolling
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies with pip
run: |
pip install --no-warn-script-location --user -r requirements.txt -c constraints.txt
- name: Build
run: make html
- name: Test
run: make test
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
needs: test
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies with pip
run: |
pip install --no-warn-script-location --user -r requirements.txt -c constraints.txt
- name: Build
run: make multiversion
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/html