diff --git a/.github/workflows/release_to_production.yml b/.github/workflows/release_to_production.yml index fd9001b39..b5b14d0c8 100644 --- a/.github/workflows/release_to_production.yml +++ b/.github/workflows/release_to_production.yml @@ -30,17 +30,22 @@ jobs: with: bundler-cache: false - # Clear any existing gems - - name: Clean gems + # Create and set permissions for vendor directory + - name: Set up vendor directory run: | - gem uninstall --all --force - rm -rf vendor/bundle - rm -f Gemfile.lock + mkdir -p vendor/bundle + chmod -R 777 vendor/bundle + sudo chown -R $USER:$USER vendor/bundle - - name: Install Fastlane + - name: Install Bundler run: | - gem install bundler:2.5.18 - gem install fastlane + gem install bundler -v 2.5.18 + + # Install gems with explicit permissions + - name: Bundle Install + run: | + bundle config set --local path 'vendor/bundle' + bundle config set --local deployment 'true' bundle install --jobs 4 --retry 3 - uses: ./.github/actions/inflate-secrets @@ -51,6 +56,13 @@ jobs: playstore-creds: ${{ secrets.PLAYSTORECREDS }} firebase-creds: ${{ secrets.FIREBASECREDS }} + # Add permissions check before running fastlane + - name: Check Permissions + run: | + ls -la vendor/bundle + whoami + groups + - name: Promote Beta to Production Play Store run: | which ruby