From fac9ca48ad3b97bef95ec24de312ae56d78d31bc Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Sun, 5 May 2024 09:33:24 -0600 Subject: [PATCH 1/3] add manual dispatch and cloudfront invalidation --- .github/workflows/test-deploy.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index ba15f3b..1036c12 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -1,6 +1,7 @@ name: Test and Deploy on: + workflow_dispatch: pull_request: branches: [ main ] push: @@ -41,4 +42,12 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-2 - - run: aws s3 sync ./out s3://mchewittwedding.com \ No newline at end of file + - run: aws s3 sync ./out s3://mchewittwedding.com + - name: Invalidate Cloudfront + uses: chetan/invalidate-cloudfront-action@v2.4 + env: + DISTRIBUTION: E1OUB9BRZ80YGI + PATHS: /* + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: us-east-2 \ No newline at end of file From 6bd1762825c3fb25c91bb63b19954c7f24d5cc5f Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Sun, 5 May 2024 09:38:59 -0600 Subject: [PATCH 2/3] fix typo --- .github/workflows/test-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 1036c12..6d52752 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -22,7 +22,7 @@ jobs: start: npm run dev wait-on: "http://localhost:3000" deploy: - runs-on: ubuntu:latest + runs-on: ubuntu-latest needs: test steps: - name: Checkout From 04f58c07f8ed48c03f4a545b60063a5d500b0d1a Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Sun, 5 May 2024 12:01:54 -0600 Subject: [PATCH 3/3] update link --- src/app/components/SpotifyPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/SpotifyPlayer.tsx b/src/app/components/SpotifyPlayer.tsx index 17390c3..07b348d 100644 --- a/src/app/components/SpotifyPlayer.tsx +++ b/src/app/components/SpotifyPlayer.tsx @@ -16,7 +16,7 @@ const SpotifyPlaylist = () => {