Skip to content

Commit

Permalink
remove env vars from github actions yaml code block (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascantor authored Apr 16, 2024
1 parent da9e65d commit 1bbc52d
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,6 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Set environment variables
env:
AWS_ROLE_ARN: 'arn:aws:iam::111111111111:role/github-actions-sts-assumption-role'
AWS_S3_BUCKET_NAME: 'example.com'
AWS_REGION: 'us-east-1'

# Sets required permissions of the GITHUB_TOKEN
permissions:
contents: read # Required for actions/checkout
Expand All @@ -207,10 +201,10 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.AWS_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
role-to-assume: arn:aws:iam::<YOUR_AWS_ACCOUNT_ID>:role/github-actions-sts-assumption-role
aws-region: us-east-1

- name: Deploy site to S3
run: |
aws s3 sync ./_site s3://${{ env.AWS_S3_BUCKET_NAME }}/ --delete
aws s3 sync ./_site s3://example.com/ --delete
```

0 comments on commit 1bbc52d

Please sign in to comment.