Skip to content

Core: Module storage (#132) #80

Core: Module storage (#132)

Core: Module storage (#132) #80

name: Publish release
on:
push:
branches:
- master
jobs:
update_release_draft:
name: Publish release with notes
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'Prebid Cache prepare release ')"
steps:
- name: Extract tag from commit message
run: |
target_tag=${COMMIT_MSG#"Prebid Cache 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 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}