From 1d286e1ec080cfe64d4a4313fad433012e952dfa Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sat, 9 Nov 2024 04:34:59 +0000 Subject: [PATCH] ci: pushing builds to r2 --- .github/workflows/build.yml | 17 ++++++++--------- .../cloud-sync-files-modal.tsx | 2 +- .../profile/profile-content/profile-content.tsx | 1 + 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89392011..42643e5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,6 @@ name: Build on: pull_request -env: - AWS_REGION: us-east-1 - jobs: build: strategy: @@ -22,12 +19,14 @@ jobs: with: node-version: 20.18.0 - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v2 - with: - aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} - aws-region: ${{ env.AWS_REGION }} + - name: Configure AWS CLI for R2 + env: + R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} + R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} + run: | + aws configure set aws_access_key_id "$R2_ACCESS_KEY_ID" + aws configure set aws_secret_access_key "$R2_SECRET_ACCESS_KEY" + aws configure set default.region us-east-1 - name: Push build to R2 run: aws s3 sync ./docs s3://${{ vars.BUILDS_BUCKET_NAME }} diff --git a/src/renderer/src/pages/game-details/cloud-sync-files-modal/cloud-sync-files-modal.tsx b/src/renderer/src/pages/game-details/cloud-sync-files-modal/cloud-sync-files-modal.tsx index c70f69b7..b4d59060 100644 --- a/src/renderer/src/pages/game-details/cloud-sync-files-modal/cloud-sync-files-modal.tsx +++ b/src/renderer/src/pages/game-details/cloud-sync-files-modal/cloud-sync-files-modal.tsx @@ -75,7 +75,7 @@ export function CloudSyncFilesModal({ showSuccessToast(t("custom_backup_location_set")); getGameBackupPreview(); } - }, [objectId, setValue, shop, showSuccessToast, getGameBackupPreview]); + }, [objectId, setValue, shop, t, showSuccessToast, getGameBackupPreview]); const handleFileMappingMethodClick = useCallback( (mappingOption: FileMappingMethod) => { diff --git a/src/renderer/src/pages/profile/profile-content/profile-content.tsx b/src/renderer/src/pages/profile/profile-content/profile-content.tsx index d6b55490..6961b126 100644 --- a/src/renderer/src/pages/profile/profile-content/profile-content.tsx +++ b/src/renderer/src/pages/profile/profile-content/profile-content.tsx @@ -259,6 +259,7 @@ export function ProfileContent() { userStats, numberFormatter, t, + buildUserGameDetailsPath, formatPlayTime, navigate, ]);