forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add github pages deploy action (youzan#8582)
- Loading branch information
1 parent
e50f6f1
commit 38f0260
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build and Deploy Site | ||
on: [push] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install and Build | ||
run: | | ||
yarn | ||
yarn release:site | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@4 | ||
with: | ||
branch: gh-pages | ||
folder: site | ||
target-folder: v3 |