Add settings for model averaging in the frontend (#620) #422
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: | |
- main | |
tags: | |
- "v*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get the version | |
id: get_version | |
run: echo VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: "Github" | |
run: | | |
git fetch origin gh-pages --depth=1 | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: "on tags" | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
pip install mkdocs-material mike | |
cd docs && mike deploy --push ${VERSION%.*} | |
# ${VERSION%.*} removes the patch version number | |
env: | |
VERSION: ${{ steps.get_version.outputs.VERSION }} | |
- name: "on branch" | |
if: ${{ startsWith(github.ref, 'refs/tags/') == false }} | |
run: | | |
pip install mkdocs-material mike | |
cd docs && mike deploy --push main |