Skip to content

Bump mkdocs-material from 9.3.2 to 9.5.2 #197

Bump mkdocs-material from 9.3.2 to 9.5.2

Bump mkdocs-material from 9.3.2 to 9.5.2 #197

Workflow file for this run

name: publish-websites
on:
workflow_dispatch:
push:
pull_request:
env:
LECTURE_WEEK: 999
SHOW_SOLUTION: 999
jobs:
# Build site
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Poetry
run: python -m pip install poetry==1.6.1
- name: Cache the virtualenv
uses: actions/cache@v3
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-root
- name: Build site
run: poetry run mkdocs build -d public
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: public
# Deploy site to Github pages
deploy:
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
# to deploy to Pages
pages: write
# to verify the deployment originates from an appropriate source
id-token: write
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