Skip to content

design: 메인 페이지 폰트 수정 (#102) #33

design: 메인 페이지 폰트 수정 (#102)

design: 메인 페이지 폰트 수정 (#102) #33

Workflow file for this run

name: Deploy to CloudFront
on:
push:
branches: [ "dev" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set .env file
run: |
touch .env
echo "${{ secrets.VUE_SECRETS }}" > .env
- name: Build project
run: |
yarn install
yarn build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload to S3 test
run: |
aws s3 sync ./dist/ s3://${{ secrets.S3_BUCKET_NAME }} --region ${{ secrets.AWS_REGION }}
- name: Invalidate CloudFront Cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths "/*"