From ccc365bd64b00f91d0e6d879b0136e67717adaee Mon Sep 17 00:00:00 2001 From: sandipndev Date: Tue, 2 Apr 2024 20:33:32 +0530 Subject: [PATCH] ci: upload recordings to gcs --- .github/workflows/e2e.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c1eb042892..9d11d06d0e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -89,6 +89,17 @@ jobs: name: android-recordings path: android-recordings + # Upload recordings to GCS bucket + - uses: "google-github-actions/auth@v2" + if: always() + with: + credentials_json: "${{ secrets.BUILD_ARTIFACTS_BUCKET_KEY }}" + - uses: "google-github-actions/upload-cloud-storage@v2" + if: always() + with: + path: android-recordings + destination: gs://galoy-build-artifacts/android-recordings/${{ github.run_id }} + # Cleanup - name: Terminate Metro if: always() @@ -179,6 +190,17 @@ jobs: name: ios-recordings path: ios-recordings + # Upload recordings to GCS bucket + - uses: "google-github-actions/auth@v2" + if: always() + with: + credentials_json: "${{ secrets.BUILD_ARTIFACTS_BUCKET_KEY }}" + - uses: "google-github-actions/upload-cloud-storage@v2" + if: always() + with: + path: ios-recordings + destination: gs://galoy-build-artifacts/ios-recordings/${{ github.run_id }} + # Cleanup - name: Cleanup if: always()