Skip to content

Commit 97c10ba

Browse files
committed
ci: deploy to github pages
Signed-off-by: Ruby Iris Juric <[email protected]>
1 parent 188f313 commit 97c10ba

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090
- gendocs-c
9191
- gendocs-android
9292
- gendocs-ios
93+
outputs:
94+
artifact_id: ${{ steps.upload_artifact.outputs.artifact_id }}
9395

9496
steps:
9597
- name: Checkout
@@ -128,7 +130,27 @@ jobs:
128130
DOCS_URL: /tmp/docs/
129131

130132
- name: Upload artifact
131-
uses: actions/upload-artifact@v4
133+
id: upload_artifact
134+
uses: actions/upload-pages-artifact@v3
132135
with:
133136
name: site-build
134137
path: __public__
138+
139+
deploy:
140+
runs-on: ubuntu-24.04
141+
if: github.ref_name == 'main'
142+
needs:
143+
- build
144+
permissions:
145+
pages: write
146+
id-token: write
147+
environment:
148+
name: github-pages
149+
url: ${{ steps.deploy.outputs.page_url }}
150+
151+
steps:
152+
- name: Deploy to GitHub Pages
153+
id: deploy
154+
uses: actions/deploy-pages@v4
155+
with:
156+
artifact_name: ${{ needs.build.outputs.artifact_id }}

0 commit comments

Comments
 (0)