Attempt to add publish workflow
This commit is contained in:
		
							parent
							
								
									71adf67727
								
							
						
					
					
						commit
						0d018d0869
					
				
							
								
								
									
										19
									
								
								.gitea/workflows/publish.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.gitea/workflows/publish.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| name: Publish library | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|     tags: | ||||
|       - v* | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   publish: | ||||
|     runs-on: nix | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Publish to Gitea | ||||
|         run: nix develop -c cargo publish --dry-run --token ${{ secrets.GITEA_TOKEN }} --index sparse+https://git.colon-three.com/api/packages/kodi/cargo/  | ||||
|       - name: Publish to crates.io | ||||
|         run: nix develop -c cargo publish --dry-run --token ${{ secrets.CRATESIO_TOKEN }} | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user