fix(ci): add step to create documentation artifact
This commit is contained in:
@@ -59,6 +59,19 @@ jobs:
|
|||||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
echo "tag=v$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
|
- name: Build Changelog
|
||||||
id: build_changelog
|
id: build_changelog
|
||||||
uses: https://github.com/mikepenz/release-changelog-builder-action@v6.0.1
|
uses: https://github.com/mikepenz/release-changelog-builder-action@v6.0.1
|
||||||
@@ -143,13 +156,17 @@ jobs:
|
|||||||
VERSION: ${{ needs.prepare.outputs.version }}
|
VERSION: ${{ needs.prepare.outputs.version }}
|
||||||
TAG_NAME: ${{ needs.prepare.outputs.tag }}
|
TAG_NAME: ${{ needs.prepare.outputs.tag }}
|
||||||
UV_PATH: 'C:\Users\gitea_runner_windows\.local\bin\uv.exe'
|
UV_PATH: 'C:\Users\gitea_runner_windows\.local\bin\uv.exe'
|
||||||
UV_NO_PROJECT: "1"
|
|
||||||
UV_NO_CONFIG: "1"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Download documentation artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: site
|
||||||
|
path: site/
|
||||||
|
|
||||||
- name: Ensure Python via uv
|
- name: Ensure Python via uv
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
@@ -176,11 +193,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
& $env:UV_PATH sync --all-groups
|
& $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
|
- name: Build Windows release with Nuitka
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user