From 6c4485496b2ea69e71343c6c91fee4ae79d65167 Mon Sep 17 00:00:00 2001 From: VincentKobz Date: Wed, 3 Jul 2024 17:48:54 +0200 Subject: [PATCH] feat: Test ci --- .github/workflows/playstore.yaml | 27 +++++++-------------------- fastlane/Appfile | 2 +- fastlane/Fastfile | 4 ++-- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/playstore.yaml b/.github/workflows/playstore.yaml index 5f2c4093..6b802677 100644 --- a/.github/workflows/playstore.yaml +++ b/.github/workflows/playstore.yaml @@ -13,29 +13,18 @@ jobs: uses: actions/checkout@v4 - name: Setup ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 with: - ruby-version: "3.x" - - - name: Setup fastlane - run: | - cd enioka_scan - bundle install - cd .. + 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: | - cd enioka_scan - cd fastlane - echo "${{ secrets.GOOGLE_API_PUB_JSON }}" | base64 --decode > service-account.json - cd ../.. + 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: | - cd enioka_scan/app - echo "${{ secrets.SIGN_KEY }}" > myKeystore.keystore.asc - gpg -d --passphrase ${{ secrets.SIGN_PASSWORD }} --batch myKeystore.keystore.asc > myKeystore.keystore - cd ../.. + 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 @@ -47,6 +36,4 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Upload app to Play Store (Internal track) - run: | - cd enioka_scan - bundle exec fastlane internal + run: bundle exec fastlane internal diff --git a/fastlane/Appfile b/fastlane/Appfile index 6d2371b2..e970fdff 100644 --- a/fastlane/Appfile +++ b/fastlane/Appfile @@ -1,2 +1,2 @@ -json_key_file("fastlane/service-account.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one +json_key_file("service-account.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one package_name("com.enioka.scanner.demo") # e.g. com.krausefx.app diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 81893eab..f372bf13 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -23,8 +23,8 @@ platform :android do # Generate AAB file gradle( - task: "bundle", - build_type: "Release" + task: "demoscannerapp:bundle", + build_type: "Debug" ) # Upload the AAB to play store (internal track)