mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	add workflow_dispatch
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/deploy_preview.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/deploy_preview.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,5 +1,12 @@
 | 
			
		||||
name: VercelPreviewDeployment
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
    inputs:
 | 
			
		||||
      branchName:
 | 
			
		||||
        description: 'Branch to deploy'
 | 
			
		||||
        required: true
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
 | 
			
		||||
  VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
 | 
			
		||||
@@ -11,17 +18,13 @@ permissions:
 | 
			
		||||
  statuses: write
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    types:
 | 
			
		||||
      - opened
 | 
			
		||||
      - synchronize
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  deploy-preview:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          ref: ${{ github.event.inputs.branchName }}
 | 
			
		||||
 | 
			
		||||
      - name: Extract branch name
 | 
			
		||||
        shell: bash
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user