ignore .DS_Store #9
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
on: | |
push: | |
paths: | |
- textbook/** | |
workflow_dispatch: | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
container: | |
image: earthlab/earth-analytics-python-env | |
options: --user root | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Jupyter Book | |
run: mamba install jupyter-book sphinx-exercise ghp-import | |
- name: Mark website directory as safe | |
run: git config --global --add safe.directory /__w/Earth-Analytics-2023-01-Intro/Earth-Analytics-2023-01-Intro | |
- name: Build and Publish Website | |
working-directory: textbook | |
run: | | |
jb build . --toc _toc_intro.yml | |
ghp-import -n -p -f _build/html |