Skip to content

Commit 6cb56fd

Browse files
committed
update workflow to test
s3 puts
1 parent cd59482 commit 6cb56fd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/mirror_data_archive.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
with:
1919
lfs: true
2020

21-
# - name: Setup AWS CLI and Credentials
22-
# uses: aws-actions/configure-aws-credentials@v4
23-
# with:
24-
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
25-
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26-
# aws-region: us-west-2
21+
- name: Setup AWS CLI and Credentials
22+
uses: aws-actions/configure-aws-credentials@v4
23+
with:
24+
aws-access-key-id: ${{ secrets.ACCESS_KEY}}
25+
aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
26+
aws-region: us-west-2
2727

2828
- name: Create archive of ONLY the datasets folder
2929
run: |
@@ -36,8 +36,8 @@ jobs:
3636
# File size reductions are diminishing returns after this - determined experimentally.
3737
tar -c attack_data | zstd --compress -T0 -10 -o $ATTACK_DATA_ARCHIVE_FILE
3838
39-
# - name: Upload Attack data archive file to S3 Bucket
40-
# run: |
41-
# aws s3 cp $ATTACK_DATA_ARCHIVE_FILE s3://$BUCKET/
42-
# aws s3api put-object-acl --bucket $BUCKET --key $ATTACK_DATA_ARCHIVE_FILE --acl public-read
39+
- name: Upload Attack data archive file to S3 Bucket
40+
run: |
41+
aws s3 cp $ATTACK_DATA_ARCHIVE_FILE s3://$BUCKET/
42+
aws s3api put-object-acl --bucket $BUCKET --key $ATTACK_DATA_ARCHIVE_FILE --acl public-read
4343

0 commit comments

Comments
 (0)