vant/.github/workflows/deploy-v4-site.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 48: mapping key "branch" already defined at line 44

50 lines
1.1 KiB
YAML

name: Deploy V4 Site
on:
push:
branches: [next]
paths:
- 'packages/vant/docs/**'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
ref: 'next'
- name: Install pnpm
run: npm i pnpm@7 -g
- 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 for Gitee 🚀
uses: JamesIves/github-pages-deploy-action@4.4.0
with:
branch: gh-pages
folder: packages/vant/site-dist
target-folder: v4
- name: Deploy for GitHub 🚀
uses: JamesIves/github-pages-deploy-action@4.4.0
with:
branch: gh-pages
folder: packages/vant/site-dist
token: ${{ secrets.VANT_UI_TOKEN }}
repository-name: vant-ui/vant-ui.github.io
branch: main
target-folder: vant/v4