ci: automatically tag releases
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Tag latest version / tag-release (push) Waiting to run
				
			
		
		
	
	
		
	
		
			Some checks are pending
		
		
	
	Tag latest version / tag-release (push) Waiting to run
				
			This commit is contained in:
		
					parent
					
						
							
								75f77e8b7d
							
						
					
				
			
			
				commit
				
					
						6f6a60f667
					
				
			
		
					 1 changed files with 31 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								.github/workflows/tag.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/tag.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| name: Tag latest version | ||||
| 
 | ||||
| on: | ||||
|   workflow_dispatch: | ||||
|   push: | ||||
|     branches: [ main ] | ||||
| 
 | ||||
| concurrency: tag | ||||
| 
 | ||||
| jobs: | ||||
|   tag-release: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: cachix/install-nix-action@master | ||||
|         with: | ||||
|           github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       - name: Read version | ||||
|         run: | | ||||
|           echo -n "_version=v" >> "$GITHUB_ENV" | ||||
|           nix run nixpkgs#fq -- -r ".package.version" Cargo.toml >> "$GITHUB_ENV" | ||||
|           cat "$GITHUB_ENV" | ||||
| 
 | ||||
|       - name: Tag | ||||
|         run: | | ||||
|           set -x | ||||
|           git tag $version | ||||
|           git push --tags || : | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue