Deploy Site #8
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: [main] | |
# paths: | |
# - 'dist/**' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Build Site | |
run: pnpm run build | |
- name: Deploy for GitHub 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: main | |
folder: dist | |
token: ${{ secrets.VANT_PLAYGROUND_TOKEN }} | |
repository-name: vant-ui/vant-ui.github.io | |
target-folder: playground | |
# enable single-commit to reduce the repo size | |
single-commit: true | |
clean: true |