Skip to content

Commit

Permalink
Add GitHub Actions + Fix build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
rrijal53 authored Jul 17, 2021
2 parents c311308 + 538536a commit 6adfdaa
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,17 @@ jobs:
cd build/app/outputs/flutter-apk/
mv app.apk blueshot.apk
ls -al
ios:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
flutter-version: '2.2.0' # you can also specify exact version of flutter
- run: |
flutter pub get
flutter build ios --release --no-codesign
29 changes: 28 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --no-sound-null-safety
- run: flutter build apk --no-shrink #--no-sound-null-safety
- run: cd build/app/outputs && tree
- run: |
cd build/app/outputs/flutter-apk/
Expand All @@ -33,3 +33,30 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true
iOS:
name: Release iOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
- run: flutter pub get
- run: flutter build ios --release --no-codesign
- run: brew install tree
- run: |
cd /Users/runner/work/flutter-ble-terminal/flutter-ble-terminal/build/ios/iphoneos
tree
ls -al
tar -zcvf ios.tar.gz Runner.app
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUBTOKEN }}
file: /Users/runner/work/flutter-ble-terminal/flutter-ble-terminal/build/ios/iphoneos/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ android {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
shrinkResources false
minifyEnabled false
}
}
}
Expand Down

0 comments on commit 6adfdaa

Please sign in to comment.