diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index ba15f3b..6d52752 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: @@ -21,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 @@ -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 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 = () => {