Skip to content

Commit

Permalink
chore: Fixing Fast file
Browse files Browse the repository at this point in the history
  • Loading branch information
niyajali committed Nov 23, 2024
1 parent 710a8a7 commit 3d8af6e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/actions/inflate-secrets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
shell: bash
env:
KEYSTORE: ${{ inputs.keystore }}
run: |
run: |
echo $KEYSTORE | base64 --decode > mifospay-android/release_keystore.keystore
- name: Inflate google-services.json
Expand All @@ -40,11 +40,13 @@ runs:
env:
CREDS: ${{ inputs.playstore-creds }}
run: |
# Create the file with appropriate permissions
touch mifospay-android/playStorePublishServiceCredentialsFile.json
echo $CREDS > mifospay-android/playStorePublishServiceCredentialsFile.json
- name: Inflate firebaseAppDistributionServiceCredentialsFile.json
shell: bash
env:
$FIREBASE_CREDS: ${{ inputs.firebase-creds }}
FIREBASE_CREDS: ${{ inputs.firebase-creds }}
run: |
echo $FIREBASE_CREDS > mifospay-android/firebaseAppDistributionServiceCredentialsFile.json
23 changes: 19 additions & 4 deletions .github/workflows/release_to_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,28 @@ jobs:
name: Play Publish Production
if: ${{ inputs.publish_to_play_store == true }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Configure Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
bundler-cache: true
bundler-cache: false

# Clear any existing gems
- name: Clean gems
run: |
gem uninstall --all --force
rm -rf vendor/bundle
rm -f Gemfile.lock
- name: Install Fastlane
run: |
gem install bundler:2.2.27
gem install bundler:2.5.18
gem install fastlane
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- uses: ./.github/actions/inflate-secrets
Expand All @@ -43,4 +52,10 @@ jobs:
firebase-creds: ${{ secrets.FIREBASECREDS }}

- name: Promote Beta to Production Play Store
run: bundle exec fastlane check_version
run: |
which ruby
ruby -v
which bundle
bundle -v
bundle exec which fastlane
bundle exec fastlane check_version

0 comments on commit 3d8af6e

Please sign in to comment.