Skip to content

Commit 74c13d6

Browse files
ran-isenbergRan Isenberg
andauthored
fix: fix gh pages release (#227)
--------- Co-authored-by: Ran Isenberg <ran.isenberg@ranthebuilder.cloud>
1 parent 3f52337 commit 74c13d6

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/cicd.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,22 @@ jobs:
6161
verbose: false # optional (default = false)
6262
token: ${{ secrets.CODECOV_TOKEN }}
6363

64-
generate_docs_on_main:
65-
name: generate_docs_on_main
64+
deploy_docs:
65+
name: deploy_docs
6666
runs-on: ubuntu-latest
6767
needs: [build]
6868
permissions:
69-
contents: write # for docs push
69+
pages: write
70+
id-token: write
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
7074
if: contains('refs/heads/main', github.ref)
7175
steps:
76+
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
7277
- name: Check out repository code
7378
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
74-
- name: Set up Python 3.14
79+
- name: Set up Python
7580
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7681
with:
7782
python-version: "3.14"
@@ -80,7 +85,11 @@ jobs:
8085
- name: Install dependencies
8186
run: |
8287
make dev
83-
make deps
84-
- name: Generate docs
88+
- name: Build docs
8589
run: |
86-
make push-docs
90+
uv run zensical build --clean
91+
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
92+
with:
93+
path: site
94+
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac553fd0d28 # v4.0.5
95+
id: deployment

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ update-deps:
4545
uv run pre-commit autoupdate
4646

4747
push-docs:
48-
uv run zensical gh-deploy --force
48+
uv run zensical build --clean

0 commit comments

Comments
 (0)