build: deploy v4 site

This commit is contained in:
chenjiahan
2022-02-21 12:22:46 +08:00
parent c206642d2d
commit 06199faf2c
+40
View File
@@ -0,0 +1,40 @@
name: Deploy V3 Site
on:
push:
branches: [next]
paths:
- 'packages/vant/docs/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
ref: 'next'
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6.20.3
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build Site
run: npm run build:site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: packages/vant/site-dist
target-folder: v4
clean: false