이미지 종류를 선택할 수 있도록 변경 #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 개발환경 - 배포 | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
env: | |
CI: '' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
name: 'Build test' | |
steps: | |
- name: checkout@v3 | |
uses: actions/checkout@v3 | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Cache node_modules 🚀 | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{runner.OS}}-build-${{hashFiles('**/yarn.lock')}} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ runner.OS }}- | |
- name: Install and Build | |
run: | | |
yarn install | |
yarn run build | |
deploy: | |
needs: | |
- ci | |
runs-on: ubuntu-latest | |
name: 'Deploy to Netlify' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Deploy to netlify | |
uses: netlify/actions/cli@master | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN}} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
with: | |
args: deploy --dir=build --prod | |
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]' |