Skip to content

Commit 2579632

Browse files
committed
ci: add build workflow for publish docs
1 parent 39f1a06 commit 2579632

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- zensical
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/configure-pages@v5
21+
- uses: actions/checkout@v6
22+
- uses: actions/setup-python@v6
23+
with:
24+
python-version: 3.x
25+
- run: pip install zensical
26+
- run: zensical build --clean
27+
- uses: actions/upload-pages-artifact@v4
28+
with:
29+
path: site
30+
- uses: actions/deploy-pages@v4
31+
id: deployment
32+

0 commit comments

Comments
 (0)