Skip to content

chore: 更新github pages的自动部署配置 #60

chore: 更新github pages的自动部署配置

chore: 更新github pages的自动部署配置 #60

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install and Build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages