|
| 1 | +name: Submit to Play Store |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + version: |
| 6 | + description: 'Github release version' |
| 7 | + required: true |
| 8 | + type: string |
| 9 | + push: |
| 10 | + tags: |
| 11 | + - 'v*' |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: write |
| 15 | + |
| 16 | +jobs: |
| 17 | + bump: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + |
| 22 | + - name: Echo Release name |
| 23 | + run: | |
| 24 | + echo "${{ github.ref_name || github.event.inputs.version }}" |
| 25 | + |
| 26 | + - uses: robinraju/release-downloader@v1 |
| 27 | + with: |
| 28 | + # The github tag. e.g: v1.0.1 |
| 29 | + # Download assets from a specific tag/version |
| 30 | + tag: ${{ github.ref_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 }} |
| 43 | + |
| 44 | + - name: Deploy Free to Indus App Store |
| 45 | + id: uploadToIndus |
| 46 | + uses: yogeshpaliyal/ [email protected] |
| 47 | + with: |
| 48 | + type: UPLOAD_AAB |
| 49 | + apiKey: ${{secrets.INDUS_API_KEY}} |
| 50 | + packageName: com.yogeshpaliyal.keypass |
| 51 | + aabFile: app/build/outputs/bundle/freeRelease/*.aab |
| 52 | + signingKeyBase64: ${{ secrets.SIGNING_KEY }} |
| 53 | + keystoreAlias: ${{ secrets.ALIAS }} |
| 54 | + keystorePassword: ${{ secrets.KEY_STORE_PASSWORD }} |
| 55 | + keyPassword: ${{ secrets.KEY_PASSWORD }} |
| 56 | + |
0 commit comments