Skip to content

Chore: Ci/CD 파이프라인 구축 (#112) #38

Chore: Ci/CD 파이프라인 구축 (#112)

Chore: Ci/CD 파이프라인 구축 (#112) #38

Workflow file for this run

name: S3 deploy with CloudFront
on:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy
uses: lbertenasco/s3-deploy@v1
with:
folder: dist
bucket: ${{ secrets.AWS_S3_BUCKET_NAME }}
dist-id: ${{ secrets.AWS_CLOUDFRONT_ID }}
invalidation: / *