feat: Test ci #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" > ${{ 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 }}/myKeystore.keystore.asc | |
echo "${{ secrets.SIGN_PASSWORD }}" > ${{ github.workspace }}/myKeystore.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: Upload app to Play Store (Internal track) | |
run: bundle exec fastlane internal |