Skip to content

Merge branch 'ci'

Merge branch 'ci' #174

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
shell: bash -el {0}
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Markdown
uses: DavidAnson/markdownlint-cli2-action@v16
with:
config: .markdownlint-cli2.jsonc
globs: "**/*.md"
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
conda-solver: libmamba
environment-file: build_env.yml
activate-environment: build
- name: Build pages
run: mkdocs build --strict
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: check
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Setup
uses: actions/configure-pages@v5
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: ./site
- name: Deploy
uses: actions/deploy-pages@v4