Skip to content

Commit

Permalink
remove: cloudfront 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi committed Nov 14, 2024
1 parent f7a2fa7 commit 64aecd0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy to Amazon s3
name: Deploy to Amazon S3

on:
push:
branches: ['feat/api-auto']

env:
AWS_REGION: ap-northeast-2
S3_BUCKET_NAME: talkak-fe
Expand All @@ -16,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code.
uses: actions/checkout@master
uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v4
Expand All @@ -27,16 +28,11 @@ jobs:
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install pnpm
run: |
npm install -g pnpm
- name: Create .env file
run: |
echo "VITE_API_URL=${{ secrets.VITE_API_URL }}" >> .env
echo "VITE_FAST_API_URL=${{ secrets.VITE_FAST_API_URL }}" >> .env
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile --force

Expand All @@ -57,9 +53,5 @@ jobs:
run: |
aws s3 cp \
--recursive \
--region ap-northeast-2 \
./dist s3://${{env.S3_BUCKET_NAME}}
- name: Invalidate CloudFront Cache
run:
aws cloudfront create-invalidation --distribution-id ${{secrets.AWS_DISTRIBUTION_ID }} --paths "/*"
--region ${AWS_REGION} \
./dist s3://${{ env.S3_BUCKET_NAME }}

0 comments on commit 64aecd0

Please sign in to comment.