Skip to content

Commit 8ef4142

Browse files
committed
ci: deploy to github pages
Signed-off-by: Ruby Iris Juric <[email protected]>
1 parent 0710a29 commit 8ef4142

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build static site
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: pages
10+
cancel-in-progress: false
611

712
jobs:
813
build:
@@ -26,7 +31,21 @@ jobs:
2631
SKIP_DOCS: true # TODO: setup docs generation
2732

2833
- name: Upload artifact
29-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-pages-artifact@v3
3035
with:
31-
name: site-build
3236
path: __public__
37+
38+
deploy:
39+
runs-on: ubuntu-24.04
40+
needs: build
41+
permissions:
42+
pages: write
43+
id-token: write
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)