Skip to content

Commit

Permalink
enhance GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hassan-kamel committed Apr 19, 2024
1 parent cf2c770 commit 7155ba2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
name: Build & Release
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603

- name: Install dependencies
run: dart pub get
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.3.3"
flutter-version: 3.19.0
- run: flutter pub get
- run: flutter test
- run: flutter build apk --debug --split-per-abi
- run: |
flutter build ios --no-codesign
Expand All @@ -33,7 +36,7 @@ jobs:
cd ..
zip -r app.ipa Payload
- name: Push to Releases
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v3
with:
artifacts: "build/app/outputs/apk/debug/*,build/ios/iphoneos/app.ipa"
tag: v1.0.${{ github.run_number }}
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ version: 1.0.0+1

environment:
sdk: ">=3.3.3 <4.0.0"
flutter: 3.19.0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down

0 comments on commit 7155ba2

Please sign in to comment.