Skip to content

Commit

Permalink
build and deploy docs via GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jan 31, 2021
1 parent 877d34b commit 2c8bfd5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 50 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Deploy docs

on:
pull_request:
push:
branches: [master]

jobs:
build-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: false
conda-channels: conda-forge

- name: Build environment
shell: bash -l {0}
run: |
conda create --name IOOS --file .binder/conda-linux-64.lock
source activate IOOS
conda install doctr
- name: Build and deploy documentation
shell: bash -l {0}
run: |
set -e
source activate IOOS
pushd webpage && python make_index.py && popd
find notebooks/ -maxdepth 1 -name \*.ipynb -print0 | xargs -0 -n1 jupyter nbconvert --template-file jupyter-jekyll.tpl --config nbconvert_config.py
# either need to find a GHA to do this or wait until doctr supports GHA
# python -m doctr deploy --key-path github_deploy_key_ioos_notebooks_demos.enc --built-docs webpage/ .
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

0 comments on commit 2c8bfd5

Please sign in to comment.