Skip to content

Commit

Permalink
update step to build Flutter app
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 30, 2024
1 parent 12bea7c commit 42258ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ jobs:
APP_VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //')
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
- name: Build Flutter app
- name: Build Flutter app (Windows)
if: matrix.platform == 'windows'
run: |
New-Item -Path "./dist/${{ env.APP_VERSION }}" -ItemType Directory -Force
flutter_distributor package --platform windows --targets exe --skip-clean
Expand All @@ -199,6 +200,14 @@ jobs:
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
VERSION: "${{ env.version }}"

- name: Build Flutter app
if: matrix.platform != 'windows'
run: make package-${{ matrix.platform }}
env:
INTERSTITIAL_AD_UNIT: "${{ secrets.INTERSTITIAL_AD_UNIT_ID }}"
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
VERSION: "${{ env.version }}"

- name: Install darwin installer dependencies
if: matrix.platform == 'macos'
run: |
Expand Down

0 comments on commit 42258ad

Please sign in to comment.