Skip to content

Commit

Permalink
ci: upload recordings to gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Apr 3, 2024
1 parent 4a9b221 commit 375f6f8
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 30
max_attempts: 3
max_attempts: 10
retry_wait_seconds: 45
command: nix develop -c sh -c 'cd dev && tilt ci'
- name: Tilt Server
run: |
Expand Down Expand Up @@ -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: galoy-build-artifacts/android-recordings/${{ github.run_id }}

# Cleanup
- name: Terminate Metro
if: always()
Expand Down Expand Up @@ -147,8 +158,8 @@ jobs:
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 30
max_attempts: 3
max_attempts: 10
retry_wait_seconds: 45
command: nix develop -c sh -c 'cd dev && tilt ci'
- name: Tilt Server
run: |
Expand Down Expand Up @@ -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: galoy-build-artifacts/ios-recordings/${{ github.run_id }}

# Cleanup
- name: Cleanup
if: always()
Expand Down

0 comments on commit 375f6f8

Please sign in to comment.