Create release with automated notes

Fixes #384
This commit is contained in:
Davide De Rosa 2023-12-14 10:31:22 +01:00
parent 3249f14dab
commit fa04df838c
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,9 @@ on:
description: "Version number" description: "Version number"
required: true required: true
env:
VERSION: ${{ github.event.inputs.version_number }}
jobs: jobs:
run_tests: run_tests:
name: Run tests name: Run tests
@ -36,8 +39,6 @@ jobs:
git_tag_gpgsign: true git_tag_gpgsign: true
git_push_gpgsign: false git_push_gpgsign: false
- name: Tag release - name: Tag release
env:
VERSION: ${{ github.event.inputs.version_number }}
run: | run: |
DATE=`date "+%Y-%m-%d"` DATE=`date "+%Y-%m-%d"`
COMMIT_MESSAGE="[ci skip] Set release date" COMMIT_MESSAGE="[ci skip] Set release date"
@ -48,3 +49,8 @@ jobs:
git commit -m "$COMMIT_MESSAGE" git commit -m "$COMMIT_MESSAGE"
git tag "v$VERSION" -m "$TAG_MESSAGE" git tag "v$VERSION" -m "$TAG_MESSAGE"
git push && git push --tags git push && git push --tags
- name: Publish release
uses: softprops/action-gh-release@v1
with:
tag_name: "v${{ env.VERSION }}"
generate_release_notes: true