Skip to content

Commit 3ad3fa1

Browse files
fix: retain root documentation source
1 parent d4607a9 commit 3ad3fa1

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/Pages.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
paths:
9-
- .github/docs/**
9+
- docs/**
1010
- .github/zensical.toml
1111
- .github/workflows/Pages.yml
1212

@@ -43,11 +43,24 @@ jobs:
4343
run: pip install zensical
4444

4545
- name: Build Zensical project
46-
run: zensical build --config-file .github/zensical.toml --clean
46+
shell: pwsh
47+
run: |
48+
Copy-Item .github/zensical.toml zensical.toml
49+
$zensicalExitCode = 0
50+
try {
51+
zensical build --clean
52+
$zensicalExitCode = $LASTEXITCODE
53+
}
54+
finally {
55+
Remove-Item zensical.toml
56+
}
57+
if ($zensicalExitCode -ne 0) {
58+
exit $zensicalExitCode
59+
}
4760
4861
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
4962
with:
50-
path: .github/site
63+
path: site
5164

5265
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
5366
id: deployment
File renamed without changes.

0 commit comments

Comments
 (0)