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