diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
index b34d4827eae..c1ee08ab668 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/release-drafter.yml
@@ -2,27 +2,20 @@ name: Publish release
on:
push:
- branches:
- - master
+ tags:
+ - '*'
jobs:
update_release_draft:
name: Publish release with notes
runs-on: ubuntu-latest
- if: "contains(github.event.head_commit.message, 'Prebid Server prepare release ')"
steps:
- - name: Extract tag from commit message
- run: |
- target_tag=${COMMIT_MSG#"Prebid Server prepare release "}
- echo "TARGET_TAG=$target_tag" >> $GITHUB_ENV
- env:
- COMMIT_MSG: ${{ github.event.head_commit.message }}
- name: Create and publish release
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
publish: true
- name: "v${{ env.TARGET_TAG }}"
- tag: ${{ env.TARGET_TAG }}
+ name: "v${{ github.ref_name }}"
+ tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/extra/pom.xml b/extra/pom.xml
index 43cc49760ab..4c263b6e60e 100644
--- a/extra/pom.xml
+++ b/extra/pom.xml
@@ -262,6 +262,8 @@
maven-release-plugin
${maven-release-plugin.version}
+ false
+ true
@{project.version}
Prebid Server