Skip to content

feat: Test ci

feat: Test ci #14

Workflow file for this run

name: PlayStore release
on:
push:
branches:
- playstore-cd
jobs:
playstore:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0.2"
bundler-cache: true
- name: Restore json key # make sure that you restore the key in the correct directory (ref. fastlane/Appfile)
run: echo "${{ secrets.GOOGLE_API_PUB_JSON_BASE64 }}" | base64 --decode > ${{ github.workspace }}/service-account.json
- name: Set up environment
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
# - name: Upload app to Play Store (Internal track)
# run: bundle exec fastlane internal
- name: Build bundle debug
run: ./gradlew demoscannerapp:bundleDebug
- name: Encode secrets to base64
run: |
echo ${{ secrets.SIGN_KEY }} | base64 > sign_key_base64.txt
echo ${{ secrets.SIGN_PASSWORD }} | base64 > sign_password_base64.txt
- uses: r0adkll/sign-android-release@v1
name: Sign app bundle
with:
releaseDirectory: app/build/outputs/bundle/debug
signingKeyBase64: sign_key_base64.txt
signingKeyPasswordBase64: sign_password_base64.txt
alias: ${{ secrets.SIGN_KEYID }}
- name: Deploy to Play Store in internal track
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: ${{ github.workspace}}/service-account.json
packageName: com.enioka.scanner.demoscannerapp
releaseFile: app/build/outputs/bundle/release/demoscannerapp-debug.aab
track: qa