Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit ac5d2d4

Browse files
Update pipeline
1 parent b40fe97 commit ac5d2d4

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

.github/workflows/cd.yml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,49 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16-
- name: Setup Java
17-
uses: actions/setup-java@v1
18-
with:
19-
java-version: 12.x
2016
- name: Decrypt Android keys
2117
run: sh ./.github/scripts/decrypt_android_keys.sh
2218
env:
2319
ANDROID_KEYS_SECRET_PASSPHRASE: ${{ secrets.ANDROID_KEYS_SECRET_PASSPHRASE }}
20+
- name: Setup Java
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: '12.x'
24+
2425
- name: Setup Flutter
2526
uses: subosito/flutter-action@v1
2627
with:
27-
flutter-version: 1.17.5
28+
channel: beta
29+
30+
- name: Flutter version
31+
run: flutter --version
32+
33+
- name: Cache pub dependencies
34+
uses: actions/cache@v2
35+
with:
36+
path: ${{ env.FLUTTER_HOME }}/.pub-cache
37+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
38+
restore-keys: ${{ runner.os }}-pub-
39+
2840
- name: Install Flutter dependencies
2941
run: flutter pub get
30-
- name: Run Fastlane
31-
uses: maierj/fastlane-action@v1.4.0
42+
- name: Setup Ruby
43+
uses: actions/setup-ruby@v1
3244
with:
33-
lane: closed_beta
34-
subdirectory: android
45+
ruby-version: '2.6'
46+
47+
- name: Cache bundle dependencies
48+
uses: actions/cache@v2
49+
with:
50+
path: vendor/bundle
51+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
52+
restore-keys: ${{ runner.os }}-gems-
53+
54+
- name: Download bundle dependencies
55+
run: |
56+
gem install bundler:2.0.2
57+
bundle config path vendor/bundle
58+
bundle install
59+
- name: Release to Google Play (beta)
60+
run: |
61+
bundle exec fastlane beta

0 commit comments

Comments
 (0)