Skip to content

Fix build docs actions (#697) #43

Fix build docs actions (#697)

Fix build docs actions (#697) #43

Workflow file for this run

name: Build documentation
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
name: Build conda environment
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Pixi Environment
uses: prefix-dev/[email protected]
with:
environments: docs
pixi-version: v0.39.2
cache: false
- name: Build docs
run: |
pixi run -e docs mkdocs
- 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_TOKEN }}
publish_dir: ./site
publish_branch: gh-pages
# destination_dir: manuscript
allow_empty_commit: false
keep_files: false
force_orphan: true
enable_jekyll: false
disable_nojekyll: false