@@ -2,7 +2,7 @@ name: Badge Magic Push CI
2
2
3
3
on :
4
4
push :
5
- branches : ["flutter_app "]
5
+ branches : ["development "]
6
6
7
7
env :
8
8
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -112,14 +112,14 @@ jobs:
112
112
name : AAB Generated
113
113
path : build/app/outputs/bundle
114
114
115
- - name : Upload APK/AAB to apk branch
115
+ - name : Upload APK/AAB to app branch
116
116
if : ${{ github.repository == 'fossasia/badgemagic-app' }}
117
117
run : |
118
118
git config --global user.name "github-actions[bot]"
119
119
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
120
120
121
- git clone --branch=apk https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} apk
122
- cd apk
121
+ git clone --branch=app https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} app
122
+ cd app
123
123
124
124
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
125
125
@@ -144,14 +144,14 @@ jobs:
144
144
145
145
ls
146
146
147
- echo "Pushing to apk branch"
147
+ echo "Pushing to app branch"
148
148
149
149
git checkout --orphan temporary
150
150
git add --all .
151
151
git commit -am "[Auto] Update APK/AAB's from $branch ($(date +%Y-%m-%d.%H:%M:%S))"
152
- git branch -D apk
153
- git branch -m apk
154
- git push --force origin apk
152
+ git branch -D app
153
+ git branch -m app
154
+ git push --force origin app
155
155
156
156
- name : Push app in open testing track
157
157
if : ${{ github.repository == 'fossasia/badgemagic-app' }}
@@ -230,8 +230,8 @@ jobs:
230
230
- name : Create and Upload Assets
231
231
run : |
232
232
echo "${{ needs.common.outputs.VERSION_CODE }}" > ./versionCode.txt
233
- git clone --branch=apk https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} apk
234
- gh release upload ${{ steps.run-release-drafter.outputs.tag_name }} apk /badge-magic-flutter_app -release.apk ./versionCode.txt --clobber
233
+ git clone --branch=app https://${{ github.repository_owner }}:${{ github.token }}@github.com/${{ github.repository }} app
234
+ gh release upload ${{ steps.run-release-drafter.outputs.tag_name }} app /badge-magic-development -release.apk ./versionCode.txt --clobber
235
235
236
236
screenshots-android :
237
237
name : Screenshots (Android)
0 commit comments