mirror of
				https://gitea.com/actions/gitea-release-action.git
				synced 2025-10-30 08:38:09 +07:00 
			
		
		
		
	chore: change to manual
This commit is contained in:
		
							parent
							
								
									3494e663be
								
							
						
					
					
						commit
						1050fbf050
					
				
							
								
								
									
										49
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										49
									
								
								.github/workflows/publish.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,37 +1,30 @@ | |||||||
| name: Build and Publish | name: Update Main Version | ||||||
| 
 | run-name: Move ${{ github.event.inputs.major_version }} to ${{ github.event.inputs.target }} | ||||||
| permissions: |  | ||||||
|   contents: write |  | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   push: |   workflow_dispatch: | ||||||
|     tags: |     inputs: | ||||||
|       - 'v[0-9]+.[0-9]+.[0-9]+' |       target: | ||||||
|  |         description: The tag or reference to use | ||||||
|  |         required: true | ||||||
|  |       major_version: | ||||||
|  |         type: choice | ||||||
|  |         description: The major version to update | ||||||
|  |         options: | ||||||
|  |           - v1 | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   build: |   tag: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     name: 构建 |  | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout |     - uses: actions/checkout@v3 | ||||||
|         uses: actions/checkout@v4 |  | ||||||
|       with: |       with: | ||||||
|           ref: 'main' |         fetch-depth: 0 | ||||||
|       - uses: actions/setup-node@v4 |     - name: Git config | ||||||
|         with: |       run: | | ||||||
|           node-version: 16 |  | ||||||
|           cache: 'npm' |  | ||||||
|           cache-dependency-path: package-lock.json |  | ||||||
|       - run: npm install -D |  | ||||||
|       - run: npm run package |  | ||||||
|       - run: | |  | ||||||
|         git config user.name github-actions |         git config user.name github-actions | ||||||
|         git config user.email github-actions@github.com |         git config user.email github-actions@github.com | ||||||
|       - run: | |     - name: Tag new target | ||||||
|           git add . |       run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }} | ||||||
|           git commit -m "Auto Build" |     - name: Push new tag | ||||||
|       - id: get_version |       run: git push origin ${{ github.event.inputs.major_version }} --force | ||||||
|         uses: battila7/get-version-action@v2 |  | ||||||
|       - run: git tag -f "v${{ steps.get_version.outputs.major }}" |  | ||||||
|       - run: git push |  | ||||||
|       - run: git push --tags -f |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user