build: yarn 패키지 설치 오류를 해결한다 #408
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: Vuepress Deploy | |
on: | |
push: | |
branches: | |
- master | |
- next | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn | |
- name: Build | |
run: yarn build | |
env: | |
VITE_APP_KAKAO_API_KEY: ${{ secrets.VITE_APP_KAKAO_API_KEY }} | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.ACCESS_TOKEN }} | |
publish_dir: src/.vitepress/dist |