-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from ocefpaf/docs
build and deploy docs via GHA
- Loading branch information
Showing
2 changed files
with
42 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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 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 | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: webpage | ||
CLEAN: true |
This file was deleted.
Oops, something went wrong.