diff --git a/.github/workflows/android-changelog-upload.yml b/.github/workflows/android-changelog-upload.yml new file mode 100644 index 00000000..1f26b90e --- /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_changelogs + - name: Cleanup + if: ${{ always() }} + run: rm -f service-account-key.json