From 56d01872e279c64b9002421d6c6d4a181e3c9c9d Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 16 Sep 2020 08:38:20 +0200 Subject: [PATCH] Adding release-drafter and change release trigger type. --- .github/release-drafter.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/latest.yaml | 3 +++ .github/workflows/release.yaml | 6 +++--- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..59bc948ae --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,30 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' + +template: | + ## General Changes + + $CHANGES + +categories: +- title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' +- title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch diff --git a/.github/workflows/latest.yaml b/.github/workflows/latest.yaml index d33d9fe31..f26d7ba3a 100644 --- a/.github/workflows/latest.yaml +++ b/.github/workflows/latest.yaml @@ -20,3 +20,6 @@ jobs: docker login -u metalstackci -p ${{ secrets.DOCKER_HUB_TOKEN }} docker build -t metalstack/metal-api . docker push metalstack/metal-api + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dc1ffcbd4..9b52538b2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,9 +1,9 @@ name: Build image from release tag on: - push: - tags: - - "v*" + release: + types: + - published jobs: build: