Skip to content

Document models

Document models #6

Workflow file for this run

name: Documentation
on:
release:
types: [created]
pull_request:
types:
- "closed"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r environment/requirements-dev.txt
pip install -e .
- name: config Git User
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch origin gh-pages --depth=1
- name: Deploy Develop Documentation
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged }}
run: mike deploy --push develop
- name: Deploy Release Documentation
if: ${{ github.event_name == 'release' }}
run: mike deploy --push --update-aliases ${{ github.event.release.tag_name }} latest