add helper script to tag release
This commit is contained in:
		
					parent
					
						
							
								d61a9fa4a9
							
						
					
				
			
			
				commit
				
					
						6611404992
					
				
			
		
					 2 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								contrib/tag-release.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								contrib/tag-release.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| c_awk_latest=' | ||||
| /^## \[.*\]/ {if (latest) exit; else {latest=1; next}} | ||||
| latest {print} | ||||
| ' | ||||
| 
 | ||||
| tag=$(grep ^version Cargo.toml | cut -d" " -f3 | tr -d '"') | ||||
| changes=$(awk "$c_awk_latest" CHANGELOG.md | tail -n+2) | ||||
| 
 | ||||
| git -c core.commentchar='%' tag --edit \ | ||||
|     -m "Release $tag" \ | ||||
|     -m "$changes" \ | ||||
|     "$tag" | ||||
| git push github master "$tag" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue