deployment #128
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: deployment | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Upgrading pip | |
run: pip install --upgrade pip | |
- name: Installing dependencies | |
run: pip install markupsafe==2.0.1 numpy cython | |
- name: Installing package | |
run: pip install -e . | |
- name: Installing Jupyter book | |
run: pip install -U jupyter-book | |
- name: Printing log | |
run: git status | |
- name: Printing shortlog | |
run: git log | git shortlog -sn | |
- name: Build Jupyter book | |
run: | | |
jupyter-book clean ./docs | |
jupyter-book build ./docs | |
- name: Deploy book to Github pages | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html | |