👷 Improve Release Process

This commit is contained in:
louis 2022-03-17 12:02:44 +01:00
parent ec2d72e6fe
commit edf751bc25
3 changed files with 35 additions and 9 deletions

View file

@ -1,3 +1,5 @@
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
@ -12,6 +14,21 @@ categories:
labels:
- 'chore'
- 'dependencies'
version-resolver:
major:
labels:
- 'feature'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'fix'
- 'bugfix'
- 'bug'
- 'chore'
- 'dependencies'
default: patch
template: |
## Changes

18
.github/workflows/release-drafter.yaml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Release Drafter
on:
push:
branches:
- main
jobs:
release:
name: Update Release
runs-on: ubuntu-20.04
steps:
- name: Publish Release
uses: release-drafter/release-drafter@v5
with:
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -34,15 +34,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish Changelog
uses: release-drafter/release-drafter@v5.19.0
with:
publish: true
name: ${{ github.ref_name }}
tag: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Releases
uses: goreleaser/goreleaser-action@v2.9.1
with: