Skip to content

Commit

Permalink
Merge pull request #7 from rshewitt/develop
Browse files Browse the repository at this point in the history
add manual dispatch and cloudfront invalidation
  • Loading branch information
rshewitt authored May 6, 2024
2 parents 42c44d3 + 04f58c0 commit fad8968
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test and Deploy

on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
Expand All @@ -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
Expand All @@ -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
- run: aws s3 sync ./out s3://mchewittwedding.com
- name: Invalidate Cloudfront
uses: chetan/[email protected]
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
2 changes: 1 addition & 1 deletion src/app/components/SpotifyPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SpotifyPlaylist = () => {
<div className="text-xl-wel font-normalBold text-gray-800 text-center mb-10 px-4">
<a
// TODO: update this link
href="https://open.spotify.com/playlist/1accWGTIiTGHdkpJhei0Ff?si=uHRxgcTkQC6ShCEox4ewOg&pt=12afd4560a6b1715fcf57ba7ab4780e9&pi=u-kTdBwbCRRl-s"
href="https://open.spotify.com/playlist/62kuDwfMjJQTA6Y1bWAmmW?si=1DSO1-m1SCCRnS1TWdk8uA&pt=51ac97ef0ed32c521f458b1b7365400e&pi=u-8LrVHHMTRUmW"
target="_blank"
rel="noreferrer"
>
Expand Down

0 comments on commit fad8968

Please sign in to comment.