Skip to content

Commit

Permalink
Add deploy docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
mschmidt87 committed Mar 25, 2021
1 parent 98c3d5e commit d28dfb8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy documentation
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
hal-cgp-deploy-docs:
name: hal-cgp deploy docs
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -e .[all]
pip install pytest-cov coveralls
pip install gym
- name: Build documentation
run: |
make -C docs/ clean
make -C docs/ html
touch docs/_build/html/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html/ # The folder the action should deploy.

0 comments on commit d28dfb8

Please sign in to comment.