Skip to content

Commit f2698d1

Browse files
ci: build web project
Signed-off-by: Henry Gressmann <[email protected]>
1 parent c4d5003 commit f2698d1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,26 @@ jobs:
2121
prefix: liwan
2222
token: ${{ secrets.GITHUB_TOKEN }}
2323

24+
build-web:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: oven-sh/setup-bun@v2
29+
with:
30+
bun-version: latest
31+
- name: Build web project
32+
run: |
33+
bun install
34+
bun run build
35+
working-directory: ./web
36+
- name: Upload web assets
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: web-dist
40+
path: ./web/dist
41+
2442
upload-assets:
25-
needs: create-release
43+
needs: [create-release, build-web]
2644
strategy:
2745
matrix:
2846
include:
@@ -38,6 +56,10 @@ jobs:
3856
runs-on: ${{ matrix.os }}
3957
steps:
4058
- uses: actions/checkout@v4
59+
- uses: actions/download-artifact@v4
60+
with:
61+
name: web-dist
62+
path: ./web/dist
4163
- uses: taiki-e/upload-rust-binary-action@v1
4264
with:
4365
bin: liwan

0 commit comments

Comments
 (0)