Skip to content

Commit 55c73ed

Browse files
committed
Update ci.yml
1 parent 21b6baa commit 55c73ed

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,6 @@ jobs:
8383
with:
8484
node-version: "20"
8585

86-
- name: Restore Database SDK from Cache
87-
uses: actions/cache@v3
88-
with:
89-
path: ~/.google-cloud-sdk
90-
key: ${{ runner.os }}-google-cloud-sdk-${{ hashFiles('**/google-cloud-sdk/**') }}
91-
restore-keys: |
92-
${{ runner.os }}-google-cloud-sdk-
93-
94-
- name: Setup Database SDK Path
95-
run: |
96-
echo "PATH=$PATH:~/.google-cloud-sdk/bin" >> $GITHUB_ENV
97-
gcloud --version
98-
99-
- name: Authenticate to Database
100-
env:
101-
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
102-
run: |
103-
echo "${GCP_SERVICE_ACCOUNT_KEY}" > gcloud-key.json
104-
gcloud auth activate-service-account --key-file=gcloud-key.json
105-
gcloud config set project steam-brew
106-
10786
- name: Download Build Scripts
10887
uses: actions/download-artifact@v4
10988
with:
@@ -130,13 +109,13 @@ jobs:
130109
run: bash ./scripts/build/prepare-dist.sh --silent
131110

132111
- name: Configure AWS CLI for R2
133-
uses: aws-actions/configure-aws-credentials@v4
134-
with:
135-
aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
136-
aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
137-
aws-region: us-east-1
138-
role-skip-session-tagging: true
139-
mask-aws-account-id: false
112+
run: |
113+
aws configure set aws_access_key_id ${{ secrets.R2_ACCESS_KEY_ID }}
114+
aws configure set aws_secret_access_key ${{ secrets.R2_SECRET_ACCESS_KEY }}
115+
aws configure set region auto
116+
env:
117+
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
118+
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
140119

141120
- name: Upload files to R2
142121
run: |

0 commit comments

Comments
 (0)