Skip to content

Commit

Permalink
Merge pull request #9 from LikeACloud7/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LikeACloud7 authored Nov 20, 2024
2 parents e54c2bf + 41b4cf4 commit eacbb9b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
AWS_REGION: ap-northeast-2
run: |
aws s3 sync ./dist s3://wafflestudio-frontend-seminar-2024-sj-dev --delete
aws cloudfront create-invalidation --distribution-id E346QHETTFJ1GU --paths "/*"
aws cloudfront create-invalidation --distribution-id E346QHETTFJ1GU --paths "/*"
31 changes: 31 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy-prod

on:
workflow_dispatch:

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.11.1'

- name: Build & Export
run: |
yarn install
yarn build
- name: Deploy to S3 and Invalidate Cloudfront
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
run: |
aws s3 sync ./dist s3://wafflestudio-frontend-seminar-2024-sj-prod --delete
aws cloudfront create-invalidation --distribution-id E346QHETTFJ1GU --paths "/*"

0 comments on commit eacbb9b

Please sign in to comment.