Skip to content

Merge pull request #383 from purrbot-site/dependabot/pip/mkdocs-mater… #345

Merge pull request #383 from purrbot-site/dependabot/pip/mkdocs-mater…

Merge pull request #383 from purrbot-site/dependabot/pip/mkdocs-mater… #345

Workflow file for this run

name: Deploy Site
on:
push:
paths:
- 'docs/**'
- '**.yml'
- 'theme/**'
- 'requirements.txt'
- '!.github/**'
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Chekout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
- name: Build documentation
run: mkdocs build
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'site/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4