Skip to content

Commit

Permalink
chore(docs): switch to new account
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalvas committed May 27, 2024
1 parent e99d972 commit 5922450
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::966137286427:role/github-actions-vitalvas-oneauth
role-to-assume: ${{ secrets.AWS_REPO_ROLE }}

- name: Setup python
uses: actions/setup-python@v5
Expand All @@ -40,7 +40,7 @@ jobs:

- name: Deploy to S3
working-directory: docs/
run: aws s3 sync --delete site/ s3://oneauth.vitalvas.dev --cache-control "public"
run: aws s3 sync --delete site/ s3://${{ secrets.AWS_BUCKET_SITE }} --cache-control "public"

- name: Invalidate CloudFront cache
run: aws cloudfront create-invalidation --distribution-id EJ3XJ8HIT9DEF --paths "/*"
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_SITE }} --paths "/*"

0 comments on commit 5922450

Please sign in to comment.