This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Merge pull request 'Update dependency mkdocs-material to v9.4.1' (#15… #81
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: 'Deploy Site (Push)' | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
- 'requirements.txt' | |
- '.github/workflows/docs-deploy.yml' | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
env: | |
GITHUB_REPO_INSTANCE: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Create/Get Cache | |
uses: actions/cache@v3 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools | |
python -m pip install -r requirements.txt | |
- name: Build docs | |
run: mkdocs build | |
- name: Configure GitHub Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: 'site/' | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v2 |