Skip to content

Commit

Permalink
Update workflow 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mllrr96 committed Jan 21, 2024
1 parent 2133447 commit 54dd0e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ jobs:
run: flutter doctor -v
- name: Run pub get and build runner
run: |
echo $GITHUB_REF
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs
dart run build_runner build --delete-conflicting-outputs
- name: Build APK
run: |
flutter build apk --split-per-abi --release
flutter build apk --release
cd build/app/outputs/flutter-apk
for f in app*.apk; do mv "$f" "Medusa-Admin-${GITHUB_REF#refs/*/}-$f"; done
cd build/app/outputs/apk/release
mv *.apk Medusa-Admin-${GITHUB_REF#refs/*/}.apk
ls
- name: Build iPA
Expand All @@ -49,6 +47,6 @@ jobs:
- name: Create Release
uses: ncipollo/release-action@v1.13.0
with:
artifacts: "build/app/outputs/flutter-apk/*.apk,build/ios/iphoneos/*.ipa"
artifacts: "build/app/outputs/apk/release/*.apk,build/ios/iphoneos/*.ipa"
allowUpdates: true
tag: ${{ github.ref }}

0 comments on commit 54dd0e3

Please sign in to comment.