Skip to content

Merge pull request #283 from iodepo/schema-dev #96

Merge pull request #283 from iodepo/schema-dev

Merge pull request #283 from iodepo/schema-dev #96

Workflow file for this run

name: deploy-book
on:
push:
branches:
- 'master'
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install graphviz
run: sudo apt-get update && sudo apt-get install graphviz
# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install -r ./book/requirements.txt
# Build the book
- name: Build the book
run: |
jupyter-book build book
- name: Create cname file
uses: finnp/create-file-action@master
env:
FILE_NAME: "./book/_build/html/CNAME"
FILE_DATA: "book.oceaninfohub.org"
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html