From acd035282d85193440a597a7e7075f2260ad39f8 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Sat, 28 Sep 2024 13:19:39 +0200 Subject: [PATCH] [Oztechan/CCC#3993] Fix Firebase Distribution uploading step for fastlane --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e166b1df0..ed4b4488d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -174,6 +174,7 @@ jobs: - name: Upload iOS Debug Artifacts uses: actions/upload-artifact@v4.4.0 + if: github.event_name == 'push' with: name: iOSArtifacts path: | @@ -200,6 +201,7 @@ jobs: DistributeIOS: runs-on: ubuntu-24.04 needs: [ XCodeBuild ] + if: github.event_name == 'push' || github.event_name == 'schedule' outputs: status: ${{ steps.status.outputs.status }} steps: @@ -212,9 +214,12 @@ jobs: name: iOSArtifacts path: ios + # was necessary to use chown to fix permission issues in linux machines - name: Distribute ${{ env.BUILD_TYPE }} working-directory: ios - run: fastlane distribute${{ env.BUILD_TYPE }} + run: | + sudo chown -R $(whoami) /var/lib/gems/ + fastlane distribute${{ env.BUILD_TYPE }} - name: Delete iOS ${{ env.BUILD_TYPE }} Artifacts uses: geekyeggo/delete-artifact@v5.1.0