From f2ac688ed88ebb9fe2835a598b231cf610b84bae Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Fri, 13 Dec 2024 13:33:39 +0800 Subject: [PATCH] feat: release build flutter use github action --- .github/workflows/release.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1264593..31e961e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,11 +37,24 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GHCR_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3 + + - name: Build Web + run: | + cd ui + flutter pub get + flutter build web --no-web-resources-cdn - name: Build and push id: push @@ -50,10 +63,7 @@ jobs: context: . file: Dockerfile push: true - platforms: | - linux/amd64 - linux/arm64 - linux/arm/v7 + platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x,linux/ppc64le,linux/riscv64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}