From 6af54248eb563a50ede9fed4f5c59dc410bc0b0e Mon Sep 17 00:00:00 2001 From: Aleksandr Gornostal Date: Sun, 13 Nov 2022 14:06:55 +0200 Subject: [PATCH] Minor changes --- .github/workflows/publish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 64a3b23..856c7cf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,4 +1,4 @@ -name: Publish to Cloudfront +name: Build & Publish to Cloudfront on: push: @@ -28,11 +28,11 @@ jobs: run: | python -m pip install --upgrade pip pip install awscli - - run: aws s3 sync _site s3://ulauncher.io --region us-east-1 --cache-control max-age=0 --acl public-read + - run: aws s3 sync _site s3://ulauncher.io --region us-east-1 --acl public-read env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - - name: Invalidate Cloudfront + - name: Invalidate Cloudfront distribution run: aws cloudfront create-invalidation --distribution-id EUJKQR38BVSMX --paths "/*" env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}