Skip to content

Commit

Permalink
test update github actions workflow yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kapable committed Jun 9, 2024
1 parent 6cb054e commit e0ba52a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on: # 이벤트 트리거
- master # master 일 경우만

jobs: # jobs
build: # GitHub-hosted runners env
install:
runs-on: ubuntu-latest # using Ubuntu LTS
steps: # steps
steps:
- name: git clone #
uses: actions/checkout@v2 #

Expand All @@ -17,10 +17,16 @@ jobs: # jobs
npm cache clean --force
npm install --unsafe-perm
npm install babel-cli cross-env webpack-cli --global
build: # GitHub-hosted runners env
needs: install
runs-on: ubuntu-latest # using Ubuntu LTS
steps: # steps
- name: build #
run: npm run build # code build

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: deploy # 배포
env:
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}'
Expand All @@ -30,7 +36,10 @@ jobs: # jobs
--recursive \
--region ap-northeast-2 \
./build s3://ktestweb
invalidation:
needs: deploy
runs-on: ubuntu-latest
steps:
# CloudFront 무효화
- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v1
Expand Down

0 comments on commit e0ba52a

Please sign in to comment.