Skip to content

1.1.0

1.1.0 #8

Workflow file for this run

name: s3-deploy
on:
push:
branches:
- main
jobs:
send-teams:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: node-version 세팅
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Dependencies 설치
run: npm install
- name: Start Build with npm
run: npm run build
env:
CI: false
- name: AWS 로그인 권한 인증 생성
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: Upload to S3
run: aws s3 sync ./dist s3://${{ secrets.AWS_BUCKET_NAME_PRD }} --delete
- name: Invalidate CloudFront Cache
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} --paths "/*"