From 28427a8de0d950d05ee803c38bd049c3071317a8 Mon Sep 17 00:00:00 2001 From: Giuseppe Ambrosio Date: Tue, 10 Dec 2024 15:04:43 +0100 Subject: [PATCH] feat(gh-actions): mkdocs --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1cd6c16..e7af6ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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