Skip to content

Commit

Permalink
update gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
dwreeves committed Nov 20, 2024
1 parent f1c4305 commit eae9aa8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
branches:
- main

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Deploy docs
Expand All @@ -12,16 +17,13 @@ jobs:
- name: Checkout main
uses: actions/checkout@v4
- name: Python 3.10 Setup
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
- name: Install requirements for docs
run: |
sudo apt-get update
- name: Deploy docs
uses: mhausenblas/[email protected]
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: docs/mkdocs.yml
REQUIREMENTS: docs/requirements.txt
pip install -U uv
uv pip install --system -r docs/requirements.txt
- name: Build and deploy docs
run: mkdocs gh-deploy --force

0 comments on commit eae9aa8

Please sign in to comment.