From cc56bdfd82f5e6652e441209980f0127968d2449 Mon Sep 17 00:00:00 2001 From: "exuberant.buzzard.qbqb" Date: Mon, 15 Sep 2025 14:53:18 +0800 Subject: [PATCH] ci: change s3 --- .gcloudignore | 5 ----- .github/workflows/storage-sync.yml | 22 ++++++++++++---------- 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 .gcloudignore diff --git a/.gcloudignore b/.gcloudignore deleted file mode 100644 index f29fa902..00000000 --- a/.gcloudignore +++ /dev/null @@ -1,5 +0,0 @@ -.git/ -.github/ -.gcloudignore -README.md -gha-*.json diff --git a/.github/workflows/storage-sync.yml b/.github/workflows/storage-sync.yml index 67fba191..941da7aa 100644 --- a/.github/workflows/storage-sync.yml +++ b/.github/workflows/storage-sync.yml @@ -4,9 +4,10 @@ on: push: branches: - main + - aws-s3 jobs: - gcs-upload: + s3-upload: runs-on: 'ubuntu-latest' permissions: @@ -17,14 +18,15 @@ jobs: - id: 'checkout' uses: 'actions/checkout@v4' - - id: 'auth' - uses: 'google-github-actions/auth@v2' + - + name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4.3.1 with: - credentials_json: '${{ secrets.STORAGESA_GOOGLE_CREDENTIALS }}' + audience: sts.amazonaws.com + aws-region: us-west-2 + role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }} - - id: 'upload' - uses: 'google-github-actions/upload-cloud-storage@v2' - with: - path: '.' - destination: '${{ secrets.GCP_DESTINATION }}' - gcloudignore_path: '.gcloudignore' + - + name: Sync S3 Bucket + run: | + aws s3 cp . s3://visual-asset.polyhedra.network --recursive --exclude ".DS_Store" --exclude ".git/*" --exclude ".github/*" --exclude "*.json" --exclude ".gitignore" --exclude "README.md" \ No newline at end of file