Skip to content

Bump mkdocs-material from 9.4.9 to 9.4.10 (#45) #32

Bump mkdocs-material from 9.4.9 to 9.4.10 (#45)

Bump mkdocs-material from 9.4.9 to 9.4.10 (#45) #32

Workflow file for this run

name: Build pages
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: bash
cache-environment-key: micromamba-${{ hashFiles('requirements.txt') }}
post-cleanup: all
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build website
env:
SITE_URL: ${{ steps.pages.outputs.base_url }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
REPO_NAME: ${{ github.repository }}
shell: micromamba-shell {0}
run: mkdocs build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
if: ${{ github.ref == 'refs/heads/main' }}
with:
path: ./site
# Deployment job
deploy:
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2