File tree 1 file changed +52
-0
lines changed
1 file changed +52
-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 : ["main"]
6
+
7
+ workflow_dispatch :
8
+
9
+ concurrency :
10
+ group : " pages"
11
+ cancel-in-progress : true
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Setup Bun
22
+ uses : oven-sh/setup-bun@v1
23
+ with :
24
+ bun-version : latest
25
+
26
+ - name : Install dependencies
27
+ run : bun install --frozen-lockfile
28
+
29
+ - name : Build
30
+ run : bun run build -- --base-href=/${{ github.event.repository.name }}/
31
+
32
+ - name : Upload artifact
33
+
34
+ with :
35
+ path : ./dist/mobile/browser
36
+
37
+ deploy :
38
+ needs : build
39
+ runs-on : ubuntu-latest
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+
44
+ permissions :
45
+ contents : read
46
+ pages : write
47
+ id-token : write
48
+
49
+ steps :
50
+ - name : Deploy to GitHub Pages
51
+ id : deployment
52
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments