post: Github 이메일 notification 라우팅하기 #77
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: Deploy github pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: 14.15.0 | |
- name: Cache node_modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{runner.OS}}-build-${{hashFiles('**/yarn.lock')}} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ runner.OS }}- | |
- name: Install dependencies | |
run: yarn install --prod --pure-lockfile | |
- name: Build | |
run: yarn run build | |
env: | |
NODE_ENV: production | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v2.5.0 | |
env: | |
PERSONAL_TOKEN: ${{secrets.SECRET_KEY}} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./public | |
SCRIPT_MODE: true |