mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-11-04 21:02:09 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			569 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			569 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Deploy V2 Site
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches: [2.x]
 | 
						|
    paths:
 | 
						|
      - 'docs/**'
 | 
						|
 | 
						|
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
 |