Skip to content

Commit

Permalink
👷 Switch to GitHub Actions for documentation building
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Aug 4, 2021
1 parent 059c089 commit a60ef6e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 58 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build documentation

# Run workflow on pushes to matching branches
on:
push:
branches: [jupyter-book]

# checkout needs 'contents:read'
# deploy needs 'contents:write'
permissions:
contents: write

jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install required packages
run: |
sudo apt-get -y install ffmpeg
pip install -r requirements.txt
- name: Build latest documentation
shell: bash
run: |
make clean
make
- name: Deploy documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92 # This is version 4.1.4
with:
branch: testdocs # The branch the action should deploy to.
folder: _build # The folder the action should deploy.
git-config-name: Deployment Bot # Name of the committer
git-config-email: [email protected] # Email of the committer
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

0 comments on commit a60ef6e

Please sign in to comment.