build: depoly v2 site (#8587)

This commit is contained in:
neverland
2021-04-20 20:51:11 +08:00
committed by GitHub
parent 02d446e6dd
commit 7e9d4a98e5
4 changed files with 34 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
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
@@ -1,9 +1,9 @@
name: Deploy Site
name: Deploy V3 Site
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v3*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build-and-deploy:
@@ -11,7 +11,9 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
ref: 'dev'
- name: Install dependencies
uses: bahmutov/npm-install@v1
+1 -1
View File
@@ -1,4 +1,4 @@
name: Create Release
name: Create Release Tag
on:
push: