Skip to content

Commit

Permalink
test: actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Jul 29, 2024
1 parent 8c28dba commit 05868c9
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 226 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- test/gitAction
# dev에 pull request 날리면 업데이트

jobs:
build-and-deploy:
Expand All @@ -25,16 +26,20 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: npm install
run: npm install
# dependency 설치
- name: yarn install
run: yarn
working-directory: ${{ env.working-directory }}

- name: npm build
run: npm run build
# build
- name: yarn build
run: yarn build
working-directory: ${{ env.working-directory }}

# S3 버킷에 배포
- name: Deploy static site to S3 bucket
run: aws s3 sync ./client/dist s3://hybridjgs-frontend

# CloudFront 삭제
- name: Invalidate CloudFront Cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV_AWS_DISTRIBUTION_ID }} --paths '/*'
Loading

0 comments on commit 05868c9

Please sign in to comment.