mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Fix publish workflow
This commit is contained in:
		
							
								
								
									
										33
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/publish.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -1,22 +1,41 @@ | ||||
| name: "Publish to Bazel Central Registry" | ||||
|  | ||||
| on: | ||||
|   # On manual trigger: | ||||
|   # Manual kick-off (you type the tag) | ||||
|   workflow_dispatch: | ||||
|     inputs: | ||||
|       tag_name: | ||||
|         description: "Tag to publish" | ||||
|         required: true | ||||
|         type: string | ||||
|  | ||||
| jobs:     | ||||
|   # Fire as soon as the Release workflow completes | ||||
|   workflow_run: | ||||
|     workflows: | ||||
|       - Release | ||||
|     types: | ||||
|       - completed | ||||
|  | ||||
| permissions: | ||||
|  | ||||
|   attestations: write | ||||
|   contents:     write | ||||
|   id-token:     write | ||||
|  | ||||
| jobs: | ||||
|   publish: | ||||
|     uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4 | ||||
|     # Only run on manual dispatch, or when Release finishes successfully | ||||
|     if: | | ||||
|       github.event_name == 'workflow_dispatch' || | ||||
|       (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') | ||||
|     with: | ||||
|       tag_name: ${{ inputs.tag_name }} | ||||
|       # If manual: use the input, otherwise grab the tag from the completed run | ||||
|       tag_name: ${{  | ||||
|         github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || | ||||
|         github.event_name == 'workflow_run'      && github.event.workflow_run.head_branch  | ||||
|       }} | ||||
|       registry_fork: ArthurSonzogni/bazel-central-registry | ||||
|     permissions: | ||||
|       attestations: write | ||||
|       contents: write | ||||
|       id-token: write | ||||
|  | ||||
|     secrets: | ||||
|       publish_token: ${{ secrets.PUBLISH_TOKEN }} | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/release.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -13,6 +13,8 @@ permissions: | ||||
|   # Needed to mint attestations | ||||
|   id-token: write | ||||
|   attestations: write | ||||
|   # Needed to upload release assets | ||||
|   contents: write | ||||
|  | ||||
| jobs: | ||||
|   release: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni