vant/.github/workflows/deploy-v2-site.yml
2021-04-20 20:51:11 +08:00

29 lines
601 B
YAML

name: Deploy V2 Site
on:
push:
tags:
- 'v2*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
ref: '2.x'
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build Site
run: npx --no-install vant-cli build-site
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: site
clean: false