Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Upload Fastlane descriptions to the Google Play Store (classic descriptions, classic app) #2

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 27 additions & 10 deletions .github/workflows/validate-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,33 @@ name: Fastlane Metadata
on:
push:
branches:
- main
- 'playstore-upload'
jobs:
validate:
# required to run on Linux because this is a docker container action
name: validate
marketing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1
with:
fastlaneDir: ./fastlane # optional. default is './fastlane'.
# enable check to validate if a locale is supported by the Play Store Listing.
usePlayStoreLocales: true # optional. default is false.
# required to run on Linux because this is a docker container action
- name: Checkout
uses: actions/checkout@v1
- name: Validate metadata
uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1
with:
fastlaneDir: ./fastlane # 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
if: github.repository == 'openfoodfacts/fastlane-descriptions-smoothie'
timeout-minutes: 10
run: pwd && cd ./fastlane/ && bundle install && bundle exec fastlane deploy_marketing
- name: Cleanup
if: ${{ always() }}
run: rm -f service-account-key.json