Skip to content

Commit 9e7ee63

Browse files
fedorovclaude
andcommitted
add current/ folder mirroring and switch gsutil to gcloud storage
- Add step to clear and replicate latest release into current/ folder - Switch IAM and CORS commands from gsutil to gcloud storage CLI to fix auth issues in GitHub Actions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bca2582 commit 9e7ee63

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cd.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,17 @@ jobs:
176176
destination:
177177
idc-index-data-artifacts/${{ github.event.release.tag_name }}
178178

179+
- name: Update current/ folder with latest release
180+
run: |
181+
gcloud storage rm -r gs://idc-index-data-artifacts/current/ || true
182+
gcloud storage cp -r \
183+
gs://idc-index-data-artifacts/${{ github.event.release.tag_name }}/* \
184+
gs://idc-index-data-artifacts/current/
185+
179186
- name: Ensure bucket is publicly readable
180187
run: |
181-
gsutil iam ch allUsers:objectViewer gs://idc-index-data-artifacts
188+
gcloud storage buckets add-iam-policy-binding gs://idc-index-data-artifacts \
189+
--member=allUsers --role=roles/storage.objectViewer
182190
183191
- name: Ensure CORS policy is set
184192
run: |
@@ -195,7 +203,7 @@ jobs:
195203
}
196204
]
197205
CORS
198-
gsutil cors set /tmp/cors.json gs://idc-index-data-artifacts
206+
gcloud storage buckets update gs://idc-index-data-artifacts --cors-file=/tmp/cors.json
199207
200208
publish:
201209
needs: [dist]

0 commit comments

Comments
 (0)