Merge pull request #20 from suu3/develop #207
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: Gh-pages deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm clean && pnpm run build | |
env: | |
NODE_ENV: production | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
PUBLISH_BRANCH: deploy | |
PUBLISH_DIR: ./public |