|
1 | 1 | name: Deploy App Play Store
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| -# branches: |
6 |
| -# - master |
7 |
| - tags: |
8 |
| - - 'v*' |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + version: |
| 7 | + description: 'Github release version' |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + release: |
| 11 | + types: [released] |
9 | 12 |
|
10 | 13 | jobs:
|
11 | 14 | build:
|
12 | 15 | runs-on: ubuntu-latest
|
13 | 16 | steps:
|
14 | 17 |
|
15 | 18 | - uses: actions/checkout@v4
|
16 |
| - |
17 |
| - - name: Setting up project |
18 |
| - uses: ./.github/actions/setup |
19 | 19 |
|
20 |
| - - name: Build Free Release AAB |
21 |
| - id: buildFreeRelease |
22 |
| - run: ./gradlew bundleFreeRelease |
| 20 | + # Add this step before the 'Post Merged PR to BlueSky' step |
| 21 | + - name: Echo Release name |
| 22 | + run: | |
| 23 | + echo "${{ github.event.inputs.version || github.event.release.name }}" |
23 | 24 |
|
24 |
| - - name: Build Pro Release AAB |
25 |
| - id: buildProRelease |
26 |
| - run: ./gradlew bundleProRelease |
27 | 25 |
|
28 |
| - - name: Sign Free AAB |
29 |
| - id: signPro |
30 |
| - uses: r0adkll/sign-android-release@fix/bundle-signing |
| 26 | + - uses: robinraju/release-downloader@v1 |
31 | 27 | with:
|
32 |
| - releaseDirectory: app/build/outputs/bundle/freeRelease |
33 |
| - signingKeyBase64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
34 |
| - alias: ${{ secrets.ALIAS }} |
35 |
| - keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
36 |
| - keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 28 | + # The github tag. e.g: v1.0.1 |
| 29 | + # Download assets from a specific tag/version |
| 30 | + tag: ${{ github.event.release.name || github.event.inputs.version }} |
| 31 | + # The name of the file to download. |
| 32 | + # Use this field only to specify filenames other than tarball or zipball, if any. |
| 33 | + # Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) |
| 34 | + fileName: 'keypass-free-*.aab' |
| 35 | + # Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) |
| 36 | + # It will create the target directory automatically if not present |
| 37 | + # eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads |
| 38 | + out-file-path: 'app/build/outputs/bundle/freeRelease' |
| 39 | + # Github access token to download files from private repositories |
| 40 | + # https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets |
| 41 | + # eg: token: ${{ secrets.MY_TOKEN }} |
| 42 | + token: ${{ secrets.GITHUB_TOKEN }} |
37 | 43 |
|
38 |
| - - name: Sign Pro AAB |
39 |
| - id: sign |
40 |
| - uses: r0adkll/sign-android-release@fix/bundle-signing |
| 44 | + - uses: robinraju/release-downloader@v1 |
41 | 45 | with:
|
42 |
| - releaseDirectory: app/build/outputs/bundle/proRelease |
43 |
| - signingKeyBase64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
44 |
| - alias: pro |
45 |
| - keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
46 |
| - keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 46 | + # The github tag. e.g: v1.0.1 |
| 47 | + # Download assets from a specific tag/version |
| 48 | + tag: ${{ github.event.release.name || github.event.inputs.version }} |
| 49 | + # The name of the file to download. |
| 50 | + # Use this field only to specify filenames other than tarball or zipball, if any. |
| 51 | + # Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) |
| 52 | + fileName: 'keypass-pro-*.aab' |
| 53 | + # Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) |
| 54 | + # It will create the target directory automatically if not present |
| 55 | + # eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads |
| 56 | + out-file-path: 'app/build/outputs/bundle/proRelease' |
| 57 | + # Github access token to download files from private repositories |
| 58 | + # https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets |
| 59 | + # eg: token: ${{ secrets.MY_TOKEN }} |
| 60 | + token: ${{ secrets.GITHUB_TOKEN }} |
47 | 61 |
|
48 | 62 | - name: Create service_account.json
|
49 | 63 | id: createServiceAccount
|
@@ -73,15 +87,15 @@ jobs:
|
73 | 87 | status: inProgress
|
74 | 88 | whatsNewDirectory: whatsnew/
|
75 | 89 |
|
76 |
| - - name: Deploy Free to Indus App Store |
77 |
| - id: uploadToIndus |
78 |
| - uses: yogeshpaliyal/upload-indus-appstore@v0.0.6 |
79 |
| - with: |
80 |
| - type: UPLOAD_AAB |
81 |
| - apiKey: ${{secrets.INDUS_API_KEY}} |
82 |
| - packageName: com.yogeshpaliyal.keypass |
83 |
| - aabFile: app/build/outputs/bundle/freeRelease/*.aab |
84 |
| - signingKeyBase64: ${{ secrets.SIGNING_KEY }} |
85 |
| - keystoreAlias: ${{ secrets.ALIAS }} |
86 |
| - keystorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
87 |
| - keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 90 | +# - name: Deploy Free to Indus App Store |
| 91 | +# id: uploadToIndus |
| 92 | +# uses: yogeshpaliyal/upload-indus-appstore@v0.0.6 |
| 93 | +# with: |
| 94 | +# type: UPLOAD_AAB |
| 95 | +# apiKey: ${{secrets.INDUS_API_KEY}} |
| 96 | +# packageName: com.yogeshpaliyal.keypass |
| 97 | +# aabFile: app/build/outputs/bundle/freeRelease/*.aab |
| 98 | +# signingKeyBase64: ${{ secrets.SIGNING_KEY }} |
| 99 | +# keystoreAlias: ${{ secrets.ALIAS }} |
| 100 | +# keystorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
| 101 | +# keyPassword: ${{ secrets.KEY_PASSWORD }} |
0 commit comments