From 1b8632988e733ed6aaeb57ce82f6296add956fa2 Mon Sep 17 00:00:00 2001 From: Vitaliy Vasylenko Date: Mon, 27 May 2024 22:10:20 -0400 Subject: [PATCH] feat: switch to new account --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/deploy.yaml | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1fdeb5f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + reviewers: + - vitalvas + assignees: + - vitalvas diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 559ccfc..3f4f483 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -37,10 +37,10 @@ jobs: uses: aws-actions/configure-aws-credentials@v2 with: aws-region: us-east-1 - role-to-assume: arn:aws:iam::966137286427:role/github-actions-pixconf-pixconf-docs + role-to-assume: ${{ secrets.AWS_REPO_ROLE }} - name: Deploy to S3 - run: aws s3 sync build/ s3://pixconf.vitalvas.dev/ --delete --cache-control "max-age=43200, public" + run: aws s3 sync build/ s3://${{ secrets.AWS_BUCKET_SITE }} --delete --cache-control "public" - name: Invalidate CloudFront cache - run: aws cloudfront create-invalidation --distribution-id E2S6UYEG5JNF7H --paths "/*" + run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_SITE }} --paths "/*"