Skip to content

Commit

Permalink
ci: build web project
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
  • Loading branch information
explodingcamera committed Aug 13, 2024
1 parent c4d5003 commit f2698d1
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,26 @@ jobs:
prefix: liwan
token: ${{ secrets.GITHUB_TOKEN }}

build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build web project
run: |
bun install
bun run build
working-directory: ./web
- name: Upload web assets
uses: actions/upload-artifact@v4
with:
name: web-dist
path: ./web/dist

upload-assets:
needs: create-release
needs: [create-release, build-web]
strategy:
matrix:
include:
Expand All @@ -38,6 +56,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: web-dist
path: ./web/dist
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: liwan
Expand Down

0 comments on commit f2698d1

Please sign in to comment.