Skip to content

Commit 86c47f2

Browse files
author
Ghulam Nasir
committed
main: android - publish apk to apps@quickbird
1 parent 0aa4331 commit 86c47f2

File tree

5 files changed

+24
-13
lines changed

5 files changed

+24
-13
lines changed

.github/workflows/android-common-with-lint.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ on:
1313
description: "Checkout the project with git lfs"
1414
type: boolean
1515
default: false
16-
workflow_dispatch:
16+
upload-apk:
17+
description: "Upload the apk to the Apps @ QuickBird"
18+
type: boolean
19+
default: false
1720

1821
concurrency:
1922
group: ${{ github.workflow }}-${{ github.ref }}
@@ -64,3 +67,9 @@ jobs:
6467
- name: Generate APK
6568
shell: bash
6669
run: ./gradlew assembleRelease
70+
- name: "Publishing to apps.quickbirdstudios.com"
71+
if: ${{ inputs.upload-apk == 'true' }}
72+
uses: QuickBirdEng/actions/qb-publish@main
73+
with:
74+
upload-key: ${{ secrets.UPLOAD_KEY }}
75+
file: app/build/outputs/apk/release/app-release.apk

.github/workflows/android-common.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ on:
1313
description: "Checkout the project with git lfs"
1414
type: boolean
1515
default: false
16-
workflow_dispatch:
16+
upload-apk:
17+
description: "Upload the apk to the Apps @ QuickBird"
18+
type: boolean
19+
default: false
1720

1821
concurrency:
1922
group: ${{ github.workflow }}-${{ github.ref }}
@@ -60,3 +63,9 @@ jobs:
6063
- name: Generate APK
6164
shell: bash
6265
run: ./gradlew assembleRelease
66+
- name: "Publishing to apps.quickbirdstudios.com"
67+
if: ${{ inputs.upload-apk }}
68+
uses: QuickBirdEng/actions/qb-publish@main
69+
with:
70+
upload-key: ${{ secrets.UPLOAD_KEY }}
71+
file: app/build/outputs/apk/release/app-release.apk

.github/workflows/android-manual-release.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,9 @@ jobs:
3434
uses: QuickBirdEng/workflows/.github/workflows/android-common.yml@main
3535
with:
3636
build-number: ${{ needs.generate-build-number.outputs.build-number }}
37+
upload-apk: true
3738
secrets: inherit
3839

39-
publish-apps-qb:
40-
runs-on: [self-hosted, Linux]
41-
needs: [branch]
42-
steps:
43-
- name: "Publishing to apps.quickbirdstudios.com"
44-
uses: QuickBirdEng/actions/qb-publish@main
45-
with:
46-
upload-key: ${{ secrets.UPLOAD_KEY }}
47-
file: app/build/outputs/apk/release/app-release.apk
48-
4940
android-bundle:
5041
runs-on: [self-hosted, Linux]
5142
needs: [generate-build-number, branch]

.github/workflows/android-release-with-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- name: Generate Build Number
2626
id: build-number-generator
27-
run: |
27+
run: |
2828
build_number=$(date +%s)
2929
echo "build-number=$build_number" >> $GITHUB_OUTPUT
3030
echo "Build Number: $build_number"
@@ -34,6 +34,7 @@ jobs:
3434
uses: ./.github/workflows/android-common-with-lint.yml
3535
with:
3636
build-number: ${{ needs.generate-build-number.outputs.build-number }}
37+
upload-apk: true
3738
secrets: inherit
3839

3940
android-bundle:

.github/workflows/android-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
uses: QuickBirdEng/workflows/.github/workflows/android-common.yml@main
3535
with:
3636
build-number: ${{ needs.generate-build-number.outputs.build-number }}
37+
upload-apk: true
3738
secrets: inherit
3839

3940
android-bundle:

0 commit comments

Comments
 (0)