Skip to content

Commit 4331750

Browse files
author
Néstor Salceda
committed
docs: Publish docs on every push to master
1 parent 4234997 commit 4331750

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/ci-master.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI - Master
2+
3+
on:
4+
merge:
5+
branches:
6+
- master
7+
8+
jobs:
9+
documentation:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: "3.8"
17+
18+
- name: Install Poetry
19+
run: python -m pip install poetry poetry-dynamic-versioning
20+
21+
- uses: actions/cache@v2
22+
name: Cache Poetry dependencies
23+
with:
24+
path: |
25+
~/.cache
26+
~/.local/share/virtualenvs/
27+
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-poetry-
30+
31+
- name: Get dependencies
32+
run: poetry install
33+
34+
- name: Documentation
35+
run: make html
36+
working-directory: ./doc
37+
38+
- name: Deploy to GitHub Pages
39+
uses: peaceiris/actions-gh-pages@v3
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: ./doc/_build/html
43+
destination_dir: ./api

.github/workflows/ci-pull-request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4949
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5050
51-
5251
- name: Test in staging
5352
env:
5453
SDC_MONITOR_TOKEN: ${{ secrets.STAGING_MONITOR_API_TOKEN }}

0 commit comments

Comments
 (0)