File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments