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 38474ca commit 6cb054e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 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
install:
build: # GitHub-hosted runners env
runs-on: ubuntu-latest # using Ubuntu LTS
steps:
steps: # steps
- name: git clone #
uses: actions/checkout@v2 #

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

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

0 comments on commit 6cb054e

Please sign in to comment.