Optimal Control extension #240
Workflow file for this run
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: documentation | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: [3.7] | |
steps: | |
- name: Copy Repository Contents β© | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Set up Python ${{ matrix.python-version }} π | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies π | |
run: | | |
python -m pip install --upgrade pip | |
pip install mkdocs mkdocs-material mkdocstrings mkdocstrings-python mknotebooks Pygments mkdocs-include-markdown-plugin livereload | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pip install . | |
- name: Build documentation π·ββοΈ | |
run: | | |
mkdocs build | |
- name: Predeploy on PR βοΈ | |
if: github.event_name == 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
folder: site | |
target-folder: "predeploy" | |
token: ${{ secrets.DOC_ACCESS_TOKEN }} | |
branch: master | |
commit-message: "PR predeploy" | |
repository-name: neurolib-dev/neurolib-dev.github.io | |
- name: Deploy π | |
if: github.event_name == 'push' | |
uses: JamesIves/[email protected] | |
with: | |
folder: site | |
token: ${{ secrets.DOC_ACCESS_TOKEN }} | |
branch: master | |
repository-name: neurolib-dev/neurolib-dev.github.io |