Skip to content

오픈그래프 이미지, 헤더 로고 url 변경 / 배포 페이즈 별 환경 변수 설정 (#61) #6

오픈그래프 이미지, 헤더 로고 url 변경 / 배포 페이즈 별 환경 변수 설정 (#61)

오픈그래프 이미지, 헤더 로고 url 변경 / 배포 페이즈 별 환경 변수 설정 (#61) #6

Workflow file for this run

name: Build and Deploy (Dev)
on:
push:
branches:
- main
concurrency:
group: deploy-dev
cancel-in-progress: true
jobs:
Deploy:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18.x
cache: yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn build:dev
- name: Upload to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "ap-northeast-2"
SOURCE_DIR: "out"
- name: Invalidate Cloudfront cache
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION }}
PATHS: "/*"
AWS_REGION: "ap-northeast-2"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}