feat(commitbot): update model to mistral/mistral-medium for cost savings #520
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: Build documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
name: Build documentation | |
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# # See: https://github.com/marketplace/actions/setup-miniconda | |
# - name: Setup miniconda | |
# uses: conda-incubator/setup-miniconda@v2 | |
# with: | |
# auto-update-conda: true | |
# miniforge-variant: Mambaforge | |
# channels: conda-forge | |
# activate-environment: llamabot | |
# environment-file: environment.yml | |
# use-mamba: true | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.1-2' | |
environment-file: environment.yml | |
init-shell: >- | |
bash | |
cache-environment: true | |
cache-environment-key: environment-${{ steps.date.outputs.date }}-${{ hashFiles('environment.yml') }} | |
cache-downloads-key: downloads-${{ steps.date.outputs.date }}-${{ hashFiles('environment.yml') }} | |
post-cleanup: 'all' | |
- name: Build docs | |
run: | | |
conda activate llamabot | |
python -m ipykernel install --user --name llamabot | |
pip install -e . | |
cp README.md docs/index.md | |
mkdocs build --site-dir /tmp/docs | |
- name: Deploy website | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
# https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-set-personal-access-token-personal_token | |
personal_token: ${{ secrets.GHPAGES_DEPLOY_KEY }} | |
publish_dir: /tmp/docs | |
publish_branch: gh-pages | |
allow_empty_commit: false | |
keep_files: false | |
force_orphan: true | |
enable_jekyll: false |