Skip to content

Commit

Permalink
add documentation build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
amoodie committed Jun 20, 2020
1 parent a4b03ad commit d84b0e2
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This workflow build and deploys the docs
# build docs on any pull request against develop, but only deploy docs on push to develop.

name: actions

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-docs.txt
sudo apt update -y && sudo apt install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended dvipng
script:
-
- name: Install pyDeltaRCM
run: |
python setup.py install
- name: Build and test documentation
run: |
(cd docs && make docs)
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.5.5
on:
push:
branches:
- develop
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
GIT_CONFIG_NAME: deltarcm-helper


0 comments on commit d84b0e2

Please sign in to comment.