Skip to content

🔀 Merge pull request #29 from Steve-xmh/master #9

🔀 Merge pull request #29 from Steve-xmh/master

🔀 Merge pull request #29 from Steve-xmh/master #9

name: Deploy docs to Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip'
- name: Run pip install
run: pip install -r requirements.txt
working-directory: './docs'
- name: Build docs
run: mkdocs build
working-directory: './docs'
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2