Skip to content

feat: Test ci

feat: Test ci #17

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: Restore keystore # make sure that you restore the key in the correct directory (same as app/gradle.properties)
run: echo "${{ secrets.SIGN_KEY }}" > ${{ github.workspace }}/demoscannerapp/debug.keystore
- 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: Build with Gradle
run: ./gradlew demoscannerapp:assembleDebug
- name: Upload apk artifact
uses: actions/upload-artifact@v4
with:
name: app-debug
path: ${{ github.workspace }}/demoscannerapp/build/outputs/apk/debug/demoscannerapp-debug-signed.apk
# - name: Upload app to Play Store (Internal track)
# run: bundle exec fastlane internal