Skip to content

Github Actions: App version Bumped to v1.4.40 #102

Github Actions: App version Bumped to v1.4.40

Github Actions: App version Bumped to v1.4.40 #102

Workflow file for this run

name: Deploy App Play Store
on:
workflow_dispatch:
inputs:
version:
description: 'Github release version'
required: true
type: string
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Add this step before the 'Post Merged PR to BlueSky' step
- name: Echo Release name
run: |
echo "${{ github.ref_name || github.event.inputs.version }}"
- uses: robinraju/release-downloader@v1
with:
# The github tag. e.g: v1.0.1
# Download assets from a specific tag/version
tag: ${{ github.ref_name || github.event.inputs.version }}
# The name of the file to download.
# Use this field only to specify filenames other than tarball or zipball, if any.
# Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..)
fileName: 'keypass-free-*.aab'
# Relative path under $GITHUB_WORKSPACE to place the downloaded file(s)
# It will create the target directory automatically if not present
# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads
out-file-path: 'app/build/outputs/bundle/freeRelease'
# Github access token to download files from private repositories
# https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
# eg: token: ${{ secrets.MY_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: robinraju/release-downloader@v1
with:
# The github tag. e.g: v1.0.1
# Download assets from a specific tag/version
tag: ${{ github.ref_name || github.event.inputs.version }}
# The name of the file to download.
# Use this field only to specify filenames other than tarball or zipball, if any.
# Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..)
fileName: 'keypass-pro-*.aab'
# Relative path under $GITHUB_WORKSPACE to place the downloaded file(s)
# It will create the target directory automatically if not present
# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads
out-file-path: 'app/build/outputs/bundle/proRelease'
# Github access token to download files from private repositories
# https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
# eg: token: ${{ secrets.MY_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create service_account.json
id: createServiceAccount
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
- name: Deploy Free to Play Store (PROD)
id: deployFreeProd
uses: r0adkll/upload-google-play@v1.1.3
with:
serviceAccountJson: service_account.json
packageName: com.yogeshpaliyal.keypass
releaseFiles: app/build/outputs/bundle/freeRelease/*.aab
track: production
userFraction: 0.01
status: inProgress
whatsNewDirectory: whatsnew/
- name: Deploy Pro to Play Store (PROD)
id: deployProProd
uses: r0adkll/upload-google-play@v1.1.3
with:
serviceAccountJson: service_account.json
packageName: com.yogeshpaliyal.keypass.pro
releaseFiles: app/build/outputs/bundle/proRelease/*.aab
track: production
userFraction: 0.01
status: inProgress
whatsNewDirectory: whatsnew/
# - name: Deploy Free to Indus App Store
# id: uploadToIndus
# uses: yogeshpaliyal/upload-indus-appstore@v0.0.6
# with:
# type: UPLOAD_AAB
# apiKey: ${{secrets.INDUS_API_KEY}}
# packageName: com.yogeshpaliyal.keypass
# aabFile: app/build/outputs/bundle/freeRelease/*.aab
# signingKeyBase64: ${{ secrets.SIGNING_KEY }}
# keystoreAlias: ${{ secrets.ALIAS }}
# keystorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
# keyPassword: ${{ secrets.KEY_PASSWORD }}