make RTD install sarkas #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Website" | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Pip install python dependencies | |
run: | | |
pip install numpy # This is a hack so i don't get and error with fdint | |
pip install -e . | |
- name: Install docs dependencies | |
run: | | |
sudo apt-get -y install pandoc | |
pip install -r docs/requirements.txt | |
- name: Make docs | |
run: | | |
cd docs | |
make html | |
# Create an artifact of the html output. | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: DocumentationHTML | |
path: docs/_build/html/ | |
# Publish built docs to gh-pages branch. | |
# https://github.com/peaceiris/actions-gh-pages | |
- name: Deploy Website and Docs | |
if: success() && github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_build/html/ |