Skip to content

Commit

Permalink
feat(gh-actions): mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppeambrosio97 committed Dec 10, 2024
1 parent 8c187ab commit 28427a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,27 @@ jobs:
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
generateReleaseNotes: true
mkdocs:
runs-on: ubuntu-22.04
needs: release
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install the latest version of uv and set the python version to 3.12
uses: astral-sh/setup-uv@v4
with:
python-version: 3.12
- name: Install dependencies
run: uv pip install .[docs]
- name: Build mkdocs site
run: mkdocs build --clean
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site

0 comments on commit 28427a8

Please sign in to comment.