Skip to content

Commit 5edd3a5

Browse files
authored
feat(ci): Add deploy.yml
1 parent ead04f3 commit 5edd3a5

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v5
17+
- run: npm ci
18+
- uses: mlugg/setup-zig@v2
19+
with:
20+
version: 0.15.1
21+
- run: zig build activate
22+
- run: zig build
23+
- uses: actions/upload-pages-artifact@v3
24+
with:
25+
path: zig-out
26+
27+
deploy:
28+
needs: build
29+
if: github.ref == 'refs/heads/main'
30+
permissions:
31+
pages: write
32+
id-token: write
33+
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/deploy-pages@v4
41+
id: deployment

0 commit comments

Comments
 (0)