Skip to content

Commit f0f8917

Browse files
authored
Add workflow Release (#203)
1 parent ac20ec4 commit f0f8917

File tree

30 files changed

+97
-107
lines changed

30 files changed

+97
-107
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/android/fastlane/service-account.json filter=git-crypt diff=git-crypt
55
/android/release.jks filter=git-crypt diff=git-crypt
66
/ios/Runner/GoogleService-Info.plist filter=git-crypt diff=git-crypt
7+
/ios/fastlane/4TV2PTBPVG.json filter=git-crypt diff=git-crypt
78
/ios/firebase_app_id_file.json filter=git-crypt diff=git-crypt
89
/ios/gc_keys.json filter=git-crypt diff=git-crypt
910
/lib/firebase_options.dart filter=git-crypt diff=git-crypt

.github/workflows/flutter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99

1010
jobs:
1111
build_apk:
12+
if: ${{ startsWith(github.ref, 'refs/heads/') }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v3
@@ -88,7 +89,7 @@ jobs:
8889
set -e
8990
9091
flutter build ios || true
91-
( cd ios && fastlane ipa )
92+
( cd ios && fastlane build_ipa )
9293
9394
- name: Setup GCP authentication
9495
uses: google-github-actions/auth@v1

.github/workflows/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release
2+
on:
3+
push:
4+
5+
env:
6+
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}
7+
8+
jobs:
9+
upload_to_play_store:
10+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup Homebrew
15+
uses: Homebrew/actions/setup-homebrew@master
16+
- name: Prepare repo
17+
run: bash ./.github/workflows/prepare.sh
18+
19+
- name: Setup Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
cache: true
23+
flutter-version: ${{ env.FLUTTER_VERSION }}
24+
- name: Prepare packages/api
25+
run: ./packages/api/tool/build.sh
26+
- run: flutter pub get
27+
- name: Run flutter build appbundle
28+
run: |
29+
set -e
30+
31+
flutter build appbundle
32+
33+
git log -1 --pretty=%B | tee android/fastlane/metadata/android/en-US/changelogs/default.txt
34+
( cd android && fastlane upload_beta )
35+
36+
upload_to_testflight:
37+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
38+
runs-on: macos-latest
39+
steps:
40+
- uses: actions/checkout@v3
41+
- name: Setup Homebrew
42+
uses: Homebrew/actions/setup-homebrew@master
43+
- name: Prepare repo
44+
run: bash ./.github/workflows/prepare.sh
45+
46+
- name: Setup Flutter
47+
uses: subosito/flutter-action@v2
48+
with:
49+
cache: true
50+
flutter-version: ${{ env.FLUTTER_VERSION }}
51+
- name: Prepare packages/api
52+
run: ./packages/api/tool/build.sh
53+
- run: flutter pub get
54+
- name: Run flutter build ios
55+
run: |
56+
set -e
57+
58+
flutter build ios || true
59+
( cd ios && fastlane upload_beta )

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ upload the apps to GCS (automatically deleted after 30 days).
2020
- macOS
2121
- Windows
2222
- State management with [provider](https://pub.dev/packages/provider)
23-
- Apple login via [apple_sign_in](https://pub.dev/packages/apple_sign_in)
23+
- Apple login via [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple)
2424
- Facebook login via [flutter_facebook_auth](https://pub.dev/packages/flutter_facebook_auth)
2525
- Google login via [google_sign_in](https://pub.dev/packages/google_sign_in)
2626
- Store authentication token with [flutter_secure_storage](https://pub.dev/packages/flutter_secure_storage)
2727
- Render HTML with [flutter_widget_from_html](https://pub.dev/packages/flutter_widget_from_html)
2828
- Push notification via [firebase_messaging](https://pub.dev/packages/firebase_messaging)
2929
- Dark mode: on / off / auto
30-
- Developer menu
30+
- Developer hidden menu (tap "Version" thrice)
3131

3232
## FAQ
3333

android/fastlane/Fastfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
default_platform(:android)
22

33
platform :android do
4-
lane :beta do
5-
desc "Deploy a new beta to Google Play"
6-
4+
lane :upload_beta do
5+
desc "Upload a beta build to Google Play"
76
upload_to_play_store(
8-
track: 'beta',
9-
aab: '../build/app/outputs/bundle/release/app.aab',
7+
aab: '../build/app/outputs/bundle/release/app-release.aab',
8+
skip_upload_images: true,
9+
skip_upload_metadata: true,
1010
skip_upload_screenshots: true,
11-
skip_upload_images: true
11+
track: 'beta'
1212
)
1313
end
1414
end

android/fastlane/metadata/android/en-US/changelogs/1.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

android/fastlane/metadata/android/en-US/changelogs/10.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

android/fastlane/metadata/android/en-US/changelogs/11.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

android/fastlane/metadata/android/en-US/changelogs/12.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

android/fastlane/metadata/android/en-US/changelogs/13.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)