Skip to content

Commit 72f0594

Browse files
Merge branches 'issue#329' and 'development' of https://github.com/samruddhi-Rahegaonkar/badgemagic-app into issue#329
2 parents 6ff02b4 + e19a58b commit 72f0594

File tree

6 files changed

+224
-247
lines changed

6 files changed

+224
-247
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Badge Magic PR CI
22

33
on:
44
pull_request:
5-
branches: [ "flutter_app" ]
5+
branches: [ "development" ]
66

77
env:
88
ANDROID_EMULATOR_API: 34

.github/workflows/pull_request_closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Delete Screenshots
22

33
on:
44
pull_request_target:
5-
branches: [ "flutter_app" ]
5+
branches: [ "development" ]
66
types:
77
- closed
88

.github/workflows/push.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Badge Magic Push CI
22

33
on:
44
push:
5-
branches: ["flutter_app"]
5+
branches: ["development"]
66

77
env:
88
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -112,14 +112,14 @@ jobs:
112112
name: AAB Generated
113113
path: build/app/outputs/bundle
114114

115-
- name: Upload APK/AAB to apk branch
115+
- name: Upload APK/AAB to app branch
116116
if: ${{ github.repository == 'fossasia/badgemagic-app' }}
117117
run: |
118118
git config --global user.name "github-actions[bot]"
119119
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
120120
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
123123
124124
branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
125125
@@ -144,14 +144,14 @@ jobs:
144144
145145
ls
146146
147-
echo "Pushing to apk branch"
147+
echo "Pushing to app branch"
148148
149149
git checkout --orphan temporary
150150
git add --all .
151151
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
155155
156156
- name: Push app in open testing track
157157
if: ${{ github.repository == 'fossasia/badgemagic-app' }}
@@ -230,8 +230,8 @@ jobs:
230230
- name: Create and Upload Assets
231231
run: |
232232
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
235235
236236
screenshots-android:
237237
name: Screenshots (Android)

0 commit comments

Comments
 (0)