diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 555cd0e..86d9a76 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -59,6 +59,19 @@ jobs: echo "version=$version" >> "$GITHUB_OUTPUT" echo "tag=v$version" >> "$GITHUB_OUTPUT" + - name: Install all dependencies + run: uv sync --all-groups + + - name: Build documentation + run: uv run zensical build --clean + + - name: Upload documentation artifact + uses: actions/upload-artifact@v4 + with: + name: site + path: site/ + retention-days: 1 + - name: Build Changelog id: build_changelog uses: https://github.com/mikepenz/release-changelog-builder-action@v6.0.1 @@ -143,13 +156,17 @@ jobs: VERSION: ${{ needs.prepare.outputs.version }} TAG_NAME: ${{ needs.prepare.outputs.tag }} UV_PATH: 'C:\Users\gitea_runner_windows\.local\bin\uv.exe' - UV_NO_PROJECT: "1" - UV_NO_CONFIG: "1" steps: - name: Checkout code uses: actions/checkout@v5 + - name: Download documentation artifact + uses: actions/download-artifact@v4 + with: + name: site + path: site/ + - name: Ensure Python via uv shell: powershell run: | @@ -176,11 +193,6 @@ jobs: run: | & $env:UV_PATH sync --all-groups - - name: Build documentation - shell: powershell - run: | - & $env:UV_PATH run zensical build --clean - - name: Build Windows release with Nuitka shell: powershell run: |