Skip to content

Commit

Permalink
Merge pull request #2450 from hdoupe/docs-action
Browse files Browse the repository at this point in the history
Add action for setting up parameters docs
  • Loading branch information
MattHJensen authored Aug 24, 2020
2 parents 104de2e + 61248df commit 483a4e4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 87 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_jupyterbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
pip install jupyter-book
conda install -c pslmodels behresp
pip install -e .
python docs/guide/make/make_uguide.py
cd docs
jb build .
39 changes: 39 additions & 0 deletions .github/workflows/deploy_parameters_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Deploy Jupyter Book with Parameter Documentation
on:
release:
types: [published]

jobs:
build-and-deploy:
if: github.repository == 'PSLmodels/Tax-Calculator'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Setup Miniconda
uses: goanpeca/setup-miniconda@v1
with:
activate-environment: taxcalc-dev
environment-file: environment.yml
python-version: 3.7
auto-activate-base: false

- name: Build # Build Jupyter Book
shell: bash -l {0}
run: |
pip install jupyter-book
conda install -c pslmodels behresp
pip install -e .
python docs/guide/make/make_uguide.py
cd docs
jb build .
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
87 changes: 0 additions & 87 deletions taxcalc/tests/test_docs.py

This file was deleted.

0 comments on commit 483a4e4

Please sign in to comment.