mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Chore: Implement release-drafter action for Changelogs (#669)
* Add inital release-drafter config * Replace release action * Add collapse-after 3 to dependencies
This commit is contained in:
		
							
								
								
									
										34
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.github/release-drafter.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | categories: | ||||||
|  |   - title: 'Features' | ||||||
|  |     labels: | ||||||
|  |       - 'enhancement' | ||||||
|  |   - title: 'Bug Fixes' | ||||||
|  |     labels: | ||||||
|  |       - 'bug' | ||||||
|  |   - title: 'Documentation' | ||||||
|  |     label: 'documentation' | ||||||
|  |   - title: 'Maintenance' | ||||||
|  |     labels: | ||||||
|  |       - 'chore' | ||||||
|  |       - 'deployment' | ||||||
|  |       - 'translation' | ||||||
|  |   - title: 'Dependencies' | ||||||
|  |     collapse-after: 3 | ||||||
|  |     label: 'dependencies' | ||||||
|  | include-labels: | ||||||
|  |   - 'enhancement' | ||||||
|  |   - 'bug' | ||||||
|  |   - 'chore' | ||||||
|  |   - 'deployment' | ||||||
|  |   - 'translation' | ||||||
|  |   - 'dependencies' | ||||||
|  | replacers: # Changes "Feature: Update checker" to "Update checker" | ||||||
|  |   - search: '/Feature:|Feat:|\[feature\]/gi' | ||||||
|  |     replace: '' | ||||||
|  | change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||||||
|  | change-title-escapes: '\<*_&#@' | ||||||
|  | tag-prefix: "ngx-" | ||||||
|  | template: | | ||||||
|  |   ## Changelog | ||||||
|  |  | ||||||
|  |   $CHANGES | ||||||
							
								
								
									
										22
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -327,24 +327,22 @@ jobs: | |||||||
|           if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then |           if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then | ||||||
|             echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-} |             echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-} | ||||||
|             echo ::set-output name=prerelease::false |             echo ::set-output name=prerelease::false | ||||||
|             echo ::set-output name=body::"For a complete list of changes, see the changelog at https://paperless-ngx.readthedocs.io/en/latest/changelog.html" |  | ||||||
|           elif [[ $GITHUB_REF == refs/tags/beta-* ]]; then |           elif [[ $GITHUB_REF == refs/tags/beta-* ]]; then | ||||||
|             echo ::set-output name=version::${GITHUB_REF#refs/tags/beta-} |             echo ::set-output name=version::${GITHUB_REF#refs/tags/beta-} | ||||||
|             echo ::set-output name=prerelease::true |             echo ::set-output name=prerelease::true | ||||||
|             echo ::set-output name=body::"For a complete list of changes, see the changelog at https://github.com/paperless-ngx/paperless-ngx/blob/beta/docs/changelog.rst" |  | ||||||
|           fi |           fi | ||||||
|       - |       - | ||||||
|         name: Create release |         name: Create Release and Changelog | ||||||
|         id: create_release |         id: create-release | ||||||
|         uses: actions/create-release@v1 |         uses: release-drafter/release-drafter@v5 | ||||||
|  |         with: | ||||||
|  |           name: Paperless-ngx ${{ steps.get_version.outputs.version }} | ||||||
|  |           tag: ngx-${{ steps.get_version.outputs.version }} | ||||||
|  |           version: ${{ steps.get_version.outputs.version }} | ||||||
|  |           prerelease: ${{ steps.get_version.outputs.prerelease }} | ||||||
|  |           publish: true # ensures release is not marked as draft | ||||||
|         env: |         env: | ||||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|         with: |  | ||||||
|           tag_name: ngx-${{ steps.get_version.outputs.version }} |  | ||||||
|           release_name: Paperless-ngx ${{ steps.get_version.outputs.version }} |  | ||||||
|           draft: false |  | ||||||
|           prerelease: ${{ steps.get_version.outputs.prerelease }} |  | ||||||
|           body: ${{ steps.get_version.outputs.body }} |  | ||||||
|       - |       - | ||||||
|         name: Upload release archive |         name: Upload release archive | ||||||
|         id: upload-release-asset |         id: upload-release-asset | ||||||
| @@ -352,7 +350,7 @@ jobs: | |||||||
|         env: |         env: | ||||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|         with: |         with: | ||||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |           upload_url: ${{ steps.create-release.outputs.upload_url }} | ||||||
|           asset_path: ./paperless-ngx.tar.xz |           asset_path: ./paperless-ngx.tar.xz | ||||||
|           asset_name: paperless-ngx-${{ steps.get_version.outputs.version }}.tar.xz |           asset_name: paperless-ngx-${{ steps.get_version.outputs.version }}.tar.xz | ||||||
|           asset_content_type: application/x-xz |           asset_content_type: application/x-xz | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Quinn Casey
					Quinn Casey