|
22 | 22 | steps:
|
23 | 23 | - uses: actions/checkout@v4
|
24 | 24 |
|
25 |
| - # - name: Checkout |
26 |
| - # run: | |
27 |
| - # git checkout -b autoVersionBump |
28 |
| - |
29 | 25 | - name: 🏗 Bump App Version
|
30 | 26 | id: bump-app-version
|
31 | 27 | run: |
|
|
47 | 43 | - name: Print newVersion
|
48 | 44 | run: echo "${{ steps.bump-app-version.outputs.newVersion }}"
|
49 | 45 |
|
| 46 | + - name: Build Free Release AAB |
| 47 | + id: buildFreeRelease |
| 48 | + run: ./gradlew bundleFreeRelease |
| 49 | + |
| 50 | + - name: Build Pro Release AAB |
| 51 | + id: buildProRelease |
| 52 | + run: ./gradlew bundleProRelease |
| 53 | + |
| 54 | + - name: Sign Free AAB |
| 55 | + id: signPro |
| 56 | + uses: r0adkll/sign-android-release@fix/bundle-signing |
| 57 | + with: |
| 58 | + releaseDirectory: app/build/outputs/bundle/freeRelease |
| 59 | + signingKeyBase64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
| 60 | + alias: ${{ secrets.ALIAS }} |
| 61 | + keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
| 62 | + keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 63 | + |
| 64 | + - name: Sign Pro AAB |
| 65 | + id: sign |
| 66 | + uses: r0adkll/sign-android-release@fix/bundle-signing |
| 67 | + with: |
| 68 | + releaseDirectory: app/build/outputs/bundle/proRelease |
| 69 | + signingKeyBase64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
| 70 | + alias: pro |
| 71 | + keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
| 72 | + keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 73 | + |
50 | 74 | - name: Push to protected branch
|
51 | 75 | uses: CasperWA/push-protected@v2
|
52 | 76 | with:
|
|
59 | 83 | git tag -a ${{ steps.bump-app-version.outputs.newVersion }} -m "Release version ${{ steps.bump-app-version.outputs.newVersion }}"
|
60 | 84 | git push origin ${{ steps.bump-app-version.outputs.newVersion }}
|
61 | 85 |
|
62 |
| -
|
63 | 86 | - name: Create Release
|
64 | 87 |
|
65 | 88 | with:
|
|
69 | 92 | discussionCategory: "Release feedbacks"
|
70 | 93 | makeLatest: true
|
71 | 94 |
|
72 |
| - # - name: Create Pull Request |
73 |
| - # uses: peter-evans/[email protected] |
| 95 | + - uses: snnaplab/universal-apk-generate-action@v1 |
| 96 | + id: apk-free-generate |
| 97 | + with: |
| 98 | + aab-path: 'app/build/outputs/bundle/freeRelease/app-free-release.aab' |
| 99 | + keystore-base64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
| 100 | + keystore-password: ${{ secrets.KEY_STORE_PASSWORD }} |
| 101 | + key-alias: ${{ secrets.ALIAS }} |
| 102 | + key-password: ${{ secrets.KEY_PASSWORD }} |
| 103 | + |
| 104 | + - name: Upload free binaries to release |
| 105 | + uses: svenstaro/upload-release-action@v2 |
| 106 | + with: |
| 107 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 108 | + file: ${{ steps.apk-free-generate.outputs.apk-path }} |
| 109 | + asset_name: 'keypass-free-${{steps.bump-app-version.outputs.newVersion}}.apk' |
| 110 | + tag: ${{ inputs.tag || github.ref_name }} |
| 111 | + overwrite: true |
| 112 | + |
| 113 | + - name: Remove universal directory |
| 114 | + run: rm -r /home/runner/work/snnaplab-universal-apk-generate-action |
74 | 115 |
|
| 116 | + - uses: snnaplab/universal-apk-generate-action@v1 |
| 117 | + id: apk-pro-generate |
| 118 | + with: |
| 119 | + aab-path: 'app/build/outputs/bundle/proRelease/app-pro-release.aab' |
| 120 | + keystore-base64: ${{ secrets.SIGNING_KEY_WITH_PRO }} |
| 121 | + keystore-password: ${{ secrets.KEY_STORE_PASSWORD }} |
| 122 | + key-alias: pro |
| 123 | + key-password: ${{ secrets.KEY_PASSWORD }} |
| 124 | + |
| 125 | + - name: Upload pro binaries to release |
| 126 | + uses: svenstaro/upload-release-action@v2 |
| 127 | + with: |
| 128 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 129 | + file: ${{ steps.apk-pro-generate.outputs.apk-path }} |
| 130 | + tag: ${{ steps.bump-app-version.outputs.newVersion }} |
| 131 | + asset_name: 'keypass-pro-${{ steps.bump-app-version.outputs.newVersion }}.apk' |
| 132 | + overwrite: true |
0 commit comments