File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,14 @@ jobs:
115
115
- flutter_sdk.zip
116
116
- Pods
117
117
118
+ release :
119
+ docker :
120
+ - image : cirrusci/flutter
121
+ steps :
122
+ - checkout
123
+ - run : chmod +x ./release.sh
124
+ - run : ./release.sh
125
+
118
126
publish :
119
127
macos :
120
128
xcode : " 10.1.0"
@@ -143,6 +151,13 @@ workflows:
143
151
branches :
144
152
only : master
145
153
- publish :
154
+ context : cross-platform
155
+ requires :
156
+ - hold
157
+ filters :
158
+ branches :
159
+ only : master
160
+ - release :
146
161
context : cross-platform
147
162
requires :
148
163
- hold
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ VERSION=$( egrep -o " version: ([0-9]-*.*)+[0-9]" pubspec.yaml | cut -d " :" -f 2)
3
+ if [ ! " ${VERSION} " ] || [ -z " ${VERSION} " ]; then
4
+ echo " Instabug: err: Version Number not found."
5
+ exit 1
6
+ else
7
+ mkdir -p .pub-cache
8
+ cat << EOF > $HOME /.pub-cache/credentials.json
9
+ {
10
+ "accessToken":"${ACCESS_TOKEN} ",
11
+ "refreshToken":"${REFRESH_TOKEN} ",
12
+ "tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
13
+ "scopes":["https://www.googleapis.com/auth/userinfo.email","openid"],
14
+ "expiration":${EXPIRATION}
15
+ }
16
+ EOF
17
+ flutter packages pub publish -f
18
+ fi
You can’t perform that action at this time.
0 commit comments