mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-30 12:13:52 +08:00 
			
		
		
		
	refactor(release): trigger via release
This commit is contained in:
		
							parent
							
								
									d020ca7d24
								
							
						
					
					
						commit
						1d5b8dbbbe
					
				
							
								
								
									
										13
									
								
								.github/workflows/release-winget.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/release-winget.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,14 +1,7 @@ | |||||||
| name: Release to winget | name: Release to winget | ||||||
| on: | on: | ||||||
|   workflow_call: |   release: | ||||||
|     inputs: |     types: [ published ] | ||||||
|       release_tag: |  | ||||||
|         description: 'Git tag to release from' |  | ||||||
|         type: string |  | ||||||
|         required: true |  | ||||||
|     secrets: |  | ||||||
|       token: |  | ||||||
|         required: true |  | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
|     inputs: |     inputs: | ||||||
|       release_tag: |       release_tag: | ||||||
| @ -24,4 +17,4 @@ jobs: | |||||||
|         with: |         with: | ||||||
|           identifier: TriliumNext.Notes |           identifier: TriliumNext.Notes | ||||||
|           token: ${{ secrets.token }} |           token: ${{ secrets.token }} | ||||||
|           release-tag:  ${{ github.event.inputs.release_tag }} |           release-tag:  ${{ github.event.inputs.release_tag || github.event.release.tag_name }} | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @ -110,9 +110,3 @@ jobs: | |||||||
|           body_path: docs/Release Notes/Release Notes/${{ github.ref }}.md |           body_path: docs/Release Notes/Release Notes/${{ github.ref }}.md | ||||||
|           fail_on_unmatched_files: true |           fail_on_unmatched_files: true | ||||||
|           files: upload/*.* |           files: upload/*.* | ||||||
| 
 |  | ||||||
|       - name: Publish to winget |  | ||||||
|         uses: ./.github/workflows/release-winget.yml |  | ||||||
|         with: |  | ||||||
|           release_tag: ${{ github.ref }} |  | ||||||
|           token: ${{ secrets.WINGET_PAT }} |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran