From 577864df24e5e258ebaa8e8b11e854659e123a3c Mon Sep 17 00:00:00 2001 From: krille-chan Date: Tue, 25 Jul 2023 06:30:22 +0200 Subject: [PATCH] ci: Correctly upload to playstore --- .github/workflows/release.yaml | 6 +++--- android/fastlane/Fastfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a896be26..23981296 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,10 +80,9 @@ jobs: use_lxd: ${{ matrix.os == 'ubuntu-18.04' }} - name: Promote Snap env: - SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }} + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} run: | - echo $SNAPCRAFT_TOKEN >> snapcrafttoken.txt - snapcraft login --with snapcrafttoken.txt + snapcraft login RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}') if [ "$RELEASE_TYPE" = "rc" ]; then snapcraft promote fluffychat --from-channel edge --to-channel candidate @@ -129,6 +128,7 @@ jobs: cd android bundle install bundle update fastlane + bundle exec fastlane deploy_internal_test RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}') if [ "$RELEASE_TYPE" = "rc" ]; then bundle exec fastlane deploy_candidate diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index a0d48467..0e378b2b 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -49,6 +49,6 @@ platform :android do end lane :deploy_release do - upload_to_play_store(track: 'beta', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true) + upload_to_play_store(track: 'internal', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true) end end