Add release notes generated with git-cliff
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Release / release (push) Successful in 31s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Release / release (push) Successful in 31s
				
			This commit is contained in:
		
							parent
							
								
									808bc48ab9
								
							
						
					
					
						commit
						d9d3c9b863
					
				
					 2 changed files with 69 additions and 6 deletions
				
			
		
							
								
								
									
										23
									
								
								.github/workflows/release.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/release.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -9,16 +9,27 @@ permissions: | |||
|   contents: write | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|   release: | ||||
|     runs-on: antville | ||||
| 
 | ||||
|     env: | ||||
|       GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||||
|       LC_TIME: en_US.UTF-8 | ||||
|       TODAY: $(date +'%d %b %Y') | ||||
| 
 | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
| 
 | ||||
|       - name: Create release notes | ||||
|         id: create_release_notes | ||||
|         run: | | ||||
|           release_notes=$(npx git-cliff@latest --latest) | ||||
|           # Write the release notes as a heredoc to the workflow output | ||||
|           # ⚠️ No white space around `<<` is crucial! | ||||
|           echo "release_notes<<.eot0x03" >> $GITHUB_OUTPUT | ||||
|           echo "$release_notes" >> $GITHUB_OUTPUT | ||||
|           echo ".eot0x03" >> $GITHUB_OUTPUT | ||||
| 
 | ||||
|       - name: Build with Gradle | ||||
|         run: ./gradlew assembleDist | ||||
|  | @ -29,17 +40,17 @@ jobs: | |||
|           direction: upload | ||||
|           url: https://code.host.antville.org | ||||
|           token: ${{ github.token }} | ||||
|           title: ${{ env.TODAY }} | ||||
|           title: Helma ${{ github.ref_name }} | ||||
|           release-dir: build/distributions | ||||
|           release-notes-assistant: true | ||||
|           release-notes: ${{ steps.create_release_notes.outputs.release_notes }} | ||||
|           verbose: true | ||||
| 
 | ||||
|       - name: Create release at GitHub | ||||
|         run: | | ||||
|           gh release create "$GITHUB_REF_NAME" \ | ||||
|             --repo "$GITHUB_REPOSITORY" \ | ||||
|             --title "${{ env.TODAY }}" \ | ||||
|             --generate-notes | ||||
|             --title "Helma ${{ github.ref_name }}" \ | ||||
|             --notes "${{ steps.create_release_notes.outputs.release_notes }}" | ||||
| 
 | ||||
|       - name: Upload release assets to GitHub | ||||
|         run: | | ||||
|  |  | |||
							
								
								
									
										52
									
								
								cliff.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								cliff.toml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,52 @@ | |||
| # git-cliff ~ default configuration file | ||||
| # https://git-cliff.org/docs/configuration | ||||
| # | ||||
| # Lines starting with "#" are comments. | ||||
| # Configuration options are organized into tables and keys. | ||||
| # See documentation for more information on available options. | ||||
| 
 | ||||
| [changelog] | ||||
| trim = true | ||||
| 
 | ||||
| header = "## Changes" | ||||
| 
 | ||||
| body = """ | ||||
| {% for group, commits in commits | filter(attribute="merge_commit") | group_by(attribute="group") %} | ||||
|   ### {{ group | striptags | trim | upper_first }} | ||||
|   {% for commit in commits %} | ||||
|     * [<tt>{{ commit.id | split(pat="") | slice(end=11) | join() }}</tt>]\ | ||||
|       (https://code.host.antville.org/antville/helma/commit/{{ commit.id }}) \ | ||||
|       {% if commit.breaking %}**Breaking:** {% endif %}\ | ||||
|       {{ commit.message | split(pat="\\n") | first | upper_first }}\ | ||||
|   {% endfor %} | ||||
| {% endfor %} | ||||
| 
 | ||||
| **Full Changelog:** [{{ previous.version }} → {{ version }}]\ | ||||
| (https://code.host.antville.org/antville/helma/compare/\ | ||||
| {{ previous.version | urlencode }}..{{ version | urlencode }})\n\n | ||||
| """ | ||||
| 
 | ||||
| footer = """ | ||||
| Generated by [git-cliff](https://git-cliff.org/). | ||||
| """ | ||||
| 
 | ||||
| [git] | ||||
| conventional_commits = false | ||||
| filter_commits = false | ||||
| filter_unconventional = false | ||||
| protect_breaking_commits = false | ||||
| sort_commits = "newest" | ||||
| split_commits = false | ||||
| topo_order = false | ||||
| 
 | ||||
| commit_parsers = [ | ||||
|   { message = "^Apply \\d+ suggestion", skip = true }, | ||||
|   { message = "^Merge .*(branch|dependabot|dependency|renovate)", skip = true }, | ||||
|   { message = "^Lock file maintenance", skip = true }, | ||||
|   { message = "yarn\\.lock", skip = true }, | ||||
| 
 | ||||
|   { message = "^[Ff]ix", group = "<!-- 0 --> 🐛 Bug Fixes" }, | ||||
|   { field = "author.name", pattern = "[Rr]enovate|[Dd]ependabot", group = "<!-- 3 --> 📦 Dependency Updates" }, | ||||
|   { message = "^Merge pull request", group = "<!-- 1 --> 🔀 Merges" }, | ||||
|   { message = ".*", group = "<!-- 2 --> Uncategorized" }, | ||||
| ] | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue