Deploy Site #136
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
name: Deploy Site | |
on: | |
push: | |
branches: [dev] | |
paths: | |
- 'docs/**/*.md' | |
- 'packages/**/*.md' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
ref: 'dev' | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Build Site | |
run: npx --no-install vant-cli build-site | |
- name: Deploy for GitHub 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: site-dist | |
token: ${{ secrets.VANT_UI_TOKEN }} | |
repository-name: vant-ui/vant-ui.github.io | |
target-folder: vant-weapp | |
# enable single-commit to reduce the repo size | |
single-commit: true | |
clean: true | |
clean-exclude: | | |
0.x |