Skip to content

Deploy Site

Deploy Site #4

Workflow file for this run

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-playground.github.io
target-folder: playground
# enable single-commit to reduce the repo size
single-commit: true
clean: true