Skip to content

Commit

Permalink
Merge pull request #25 from LeadingEDJE/connect-to-s3-4
Browse files Browse the repository at this point in the history
reference secrets
  • Loading branch information
kooper-smith-le committed Nov 10, 2023
2 parents 295b493 + 4e828dc commit 9839221
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- 'main'
env:
aws_role: ${{ secrets.AWS_ROLE }}
s3_bucket: ${{ secrets.S3_BUCKET }}

jobs:
build:
Expand All @@ -26,12 +29,12 @@ jobs:
- name: Test
run: npm run test:headless
- name: "ECHO AWS"
run: echo "role=$AWS_ROLE bucket=$S3_BUCKET"
run: echo "role=$aws_role bucket=$s3_bucket"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: $AWS_ROLE
role-to-assume: $aws_role
aws-region: us-east-2
- name: Copy files to the test website with the AWS CLI
run: |
aws s3 sync . s3://$S3_BUCKET
aws s3 sync . s3://$s3_bucket

0 comments on commit 9839221

Please sign in to comment.