FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
flutter-samples/.github/workflows/build.yml at develop · GetStream/flutter-samples · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
GetStream
/
flutter-samples
Public
Notifications
You must be signed in to change notification settings
Fork
129
Star
315
Code
Issues
4
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
flutter-samples
/
.github
/
workflows
/
build.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
100 lines (81 loc) · 2.67 KB
Breadcrumbs
flutter-samples
/
.github
/
workflows
/
build.yml
Copy path
File metadata and controls
100 lines (81 loc) · 2.67 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name
:
build
on
:
push
:
branches
:
-
main
workflow_dispatch
:
defaults
:
run
:
working-directory
:
packages/stream_chat_v1
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
permissions
:
actions
:
write
contents
:
read
id-token
:
write
jobs
:
build_and_deploy_ios
:
runs-on
:
macos-latest
timeout-minutes
:
40
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
name
:
Setup Flutter
uses
:
subosito/flutter-action@v2
with
:
channel
:
stable
cache
:
true
-
name
:
Setup Ruby and Gems
uses
:
ruby/setup-ruby@v1
with
:
working-directory
:
packages/stream_chat_v1/ios
bundler-cache
:
true
-
name
:
Copy production config
run
:
echo "${{ secrets.PRODUCTION_CONFIG }}" > lib/app_config.dart
-
name
:
Build and release
env
:
MATCH_PASSWORD
:
${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION
:
${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
FASTLANE_USER
:
${{ secrets.FASTLANE_USER }}
FASTLANE_PASSWORD
:
${{ secrets.FASTLANE_PASSWORD }}
FASTLANE_SESSION
:
${{ secrets.FASTLANE_SESSION }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD
:
${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
run
:
|
flutter build ios --no-codesign
cd ios
bundle exec fastlane deploy_to_testflight
build_and_deploy_android
:
runs-on
:
ubuntu-latest
timeout-minutes
:
15
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
name
:
Setup Flutter
uses
:
subosito/flutter-action@v2
with
:
channel
:
stable
cache
:
true
-
name
:
Setup Java
uses
:
actions/setup-java@v1
with
:
java-version
:
'
12.x
'
-
name
:
Copy production config
run
:
echo "${{ secrets.PRODUCTION_CONFIG }}" > lib/app_config.dart
-
name
:
Build
run
:
flutter build apk
-
name
:
Upload Artifact
uses
:
actions/upload-artifact@v3
with
:
name
:
android-stream-chat-v1
path
:
packages/stream_chat_v1/build/app/outputs/apk/release/app-release.apk
-
name
:
Configure AWS credentials
uses
:
aws-actions/configure-aws-credentials@v2
with
:
aws-access-key-id
:
${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key
:
${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region
:
us-east-1
-
name
:
Upload to S3
run
:
|
cp build/app/outputs/apk/release/app-release.apk flutter-sample-app.apk
aws s3 cp flutter-sample-app.apk s3://${{ secrets.AWS_S3_BUCKET }} --sse AES256
Back
|
FazBrowse Home
|
New Git URL