Skip to content

Commit f2ac688

Browse files
committed
feat: release build flutter use github action
1 parent 369263a commit f2ac688

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,24 @@ jobs:
3737
registry: ${{ env.REGISTRY }}
3838
username: ${{ github.actor }}
3939
password: ${{ secrets.GHCR_TOKEN }}
40+
4041
- name: Extract metadata (tags, labels) for Docker
4142
id: meta
4243
uses: docker/metadata-action@v5
4344
with:
4445
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
47+
- name: Set up Flutter
48+
uses: subosito/flutter-action@v2
49+
with:
50+
channel: stable
51+
flutter-version: 3
52+
53+
- name: Build Web
54+
run: |
55+
cd ui
56+
flutter pub get
57+
flutter build web --no-web-resources-cdn
4558
4659
- name: Build and push
4760
id: push
@@ -50,10 +63,7 @@ jobs:
5063
context: .
5164
file: Dockerfile
5265
push: true
53-
platforms: |
54-
linux/amd64
55-
linux/arm64
56-
linux/arm/v7
66+
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x,linux/ppc64le,linux/riscv64
5767
tags: ${{ steps.meta.outputs.tags }}
5868
labels: ${{ steps.meta.outputs.labels }}
5969

0 commit comments

Comments
 (0)