From d759f8b9ca2f4eb970370cfd572d13d51aebeba0 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Thu, 25 Aug 2022 10:01:05 +0200 Subject: [PATCH 1/2] ci: Play Store Upload of changelogs --- .../workflows/android-changelog-upload.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/android-changelog-upload.yml diff --git a/.github/workflows/android-changelog-upload.yml b/.github/workflows/android-changelog-upload.yml new file mode 100644 index 00000000..10ecb341 --- /dev/null +++ b/.github/workflows/android-changelog-upload.yml @@ -0,0 +1,34 @@ +name: Upload Fastlane Changelog for Android +on: + push: + branches: + - 'upload-changelog-to-playstore' +jobs: + marketing: + runs-on: ubuntu-latest + steps: + # required to run on Linux because this is a docker container action + - name: Checkout + uses: actions/checkout@v3 + # - name: Validate metadata + #uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1 + # with: + # fastlaneDir: ./fastlane/metadata-android # optional. default is './fastlane'. + # enable check to validate if a locale is supported by the Play Store Listing. + # usePlayStoreLocales: true # optional. default is false. + - name: Decrypt API JSON file + run: cd ./fastlane/envfiles && chmod +x ./decrypt_secrets.sh && ./decrypt_secrets.sh + env: + API_JSON_FILE_DECRYPTKEY: ${{ secrets.API_JSON_FILE_DECRYPTKE }} + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: 3.0.2 + - name: Play Store Upload of changelogs + if: github.repository == 'openfoodfacts/fastlane-descriptions-smoothie' + timeout-minutes: 10 + run: pwd && cd ./fastlane/ && bundle install && bundle exec fastlane deploy_changelog + - name: Cleanup + if: ${{ always() }} + run: rm -f service-account-key.json From 710f6465d946716512c50a53cb72c4b2ec16da9c Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Thu, 25 Aug 2022 10:05:11 +0200 Subject: [PATCH 2/2] Update .github/workflows/android-changelog-upload.yml --- .github/workflows/android-changelog-upload.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android-changelog-upload.yml b/.github/workflows/android-changelog-upload.yml index 10ecb341..1f26b90e 100644 --- a/.github/workflows/android-changelog-upload.yml +++ b/.github/workflows/android-changelog-upload.yml @@ -28,7 +28,7 @@ jobs: - name: Play Store Upload of changelogs if: github.repository == 'openfoodfacts/fastlane-descriptions-smoothie' timeout-minutes: 10 - run: pwd && cd ./fastlane/ && bundle install && bundle exec fastlane deploy_changelog + run: pwd && cd ./fastlane/ && bundle install && bundle exec fastlane deploy_changelogs - name: Cleanup if: ${{ always() }} run: rm -f service-account-key.json