mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
ci: pushing builds to r2
This commit is contained in:
parent
341903fc3e
commit
1d286e1ec0
3 changed files with 10 additions and 10 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -2,9 +2,6 @@ name: Build
|
||||||
|
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
env:
|
|
||||||
AWS_REGION: us-east-1
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -22,12 +19,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 20.18.0
|
node-version: 20.18.0
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS CLI for R2
|
||||||
uses: aws-actions/configure-aws-credentials@v2
|
env:
|
||||||
with:
|
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
||||||
aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
|
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
||||||
aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
run: |
|
||||||
aws-region: ${{ env.AWS_REGION }}
|
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
|
- name: Push build to R2
|
||||||
run: aws s3 sync ./docs s3://${{ vars.BUILDS_BUCKET_NAME }}
|
run: aws s3 sync ./docs s3://${{ vars.BUILDS_BUCKET_NAME }}
|
||||||
|
|
|
@ -75,7 +75,7 @@ export function CloudSyncFilesModal({
|
||||||
showSuccessToast(t("custom_backup_location_set"));
|
showSuccessToast(t("custom_backup_location_set"));
|
||||||
getGameBackupPreview();
|
getGameBackupPreview();
|
||||||
}
|
}
|
||||||
}, [objectId, setValue, shop, showSuccessToast, getGameBackupPreview]);
|
}, [objectId, setValue, shop, t, showSuccessToast, getGameBackupPreview]);
|
||||||
|
|
||||||
const handleFileMappingMethodClick = useCallback(
|
const handleFileMappingMethodClick = useCallback(
|
||||||
(mappingOption: FileMappingMethod) => {
|
(mappingOption: FileMappingMethod) => {
|
||||||
|
|
|
@ -259,6 +259,7 @@ export function ProfileContent() {
|
||||||
userStats,
|
userStats,
|
||||||
numberFormatter,
|
numberFormatter,
|
||||||
t,
|
t,
|
||||||
|
buildUserGameDetailsPath,
|
||||||
formatPlayTime,
|
formatPlayTime,
|
||||||
navigate,
|
navigate,
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue