Skip to content

Commit

Permalink
add workflow to build and publish docs on push
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Sep 29, 2020
1 parent 3a2fe50 commit ad89b00
Show file tree
Hide file tree
Showing 39 changed files with 33 additions and 16,461 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish docs
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false

- name: Build docs
run: |
pip install -r requirements
pip install .
cd docs
make html
- name: Publish docs
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true
6 changes: 3 additions & 3 deletions .github/workflows/build.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: build
name: test

on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8' ]
python-version: [ '3.7', '3.8' ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
Expand Down
Binary file removed docs/build/doctrees/api.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/build_model.doctree
Binary file not shown.
Binary file removed docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file removed docs/build/doctrees/index.doctree
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/build/html/.buildinfo

This file was deleted.

Empty file removed docs/build/html/.nojekyll
Empty file.
85 changes: 0 additions & 85 deletions docs/build/html/404.html

This file was deleted.

22 changes: 0 additions & 22 deletions docs/build/html/_sources/api.rst.txt

This file was deleted.

200 changes: 0 additions & 200 deletions docs/build/html/_sources/build_model.rst.txt

This file was deleted.

Loading

0 comments on commit ad89b00

Please sign in to comment.