Merge pull request #47 from yibeichan/typing-checking #89
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
name: deploy-gh-pages | |
on: | |
push: {branches: [main, master]} | |
pull_request: {branches: [main, master]} | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Disable etelemetry | |
run: echo "NO_ET=TRUE" >> $GITHUB_ENV | |
- name: Active conda env pydra-tutorial | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: pydra-tutorial | |
environment-file: environment.yml | |
- run: conda info | |
- run: conda list | |
- run: conda config --show | |
- name: Set git credentials | |
run: | | |
git config --global user.name "fake user" | |
git config --global user.email "fake@email" | |
- name: Install dependencies | |
run: pip install jupyter-book | |
- name: Build JupyterBook | |
run: jb build -W jupyterbook | |
- uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: jupyterbook/_build/html |