Skip to content

fix deploy

fix deploy #5

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: |
pnpm build
cp ./config/CNAME ./dist/CNAME
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist