Skip to content

Commit

Permalink
COM-12579:
Browse files Browse the repository at this point in the history
*remove TODOs
*add changelog as notes (manually configurable before the release creation)
  • Loading branch information
rsanchez87 committed Nov 19, 2024
1 parent c64bb34 commit 43394cc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ on:
version:
description: 'Release version (e.g., 0.1.0)'
required: true
default: 0.1.1
notes:
description: 'Release notes (e.g., changelog)'
required: false
default: 'Changelog: - Added feature 1\n- Fixed issue 2'
push:
branches: # TODO delete after testing
- COM-12579
tags:
- 'v*.*.*'

Expand Down Expand Up @@ -94,8 +95,10 @@ jobs:
git push origin v${{ github.event.inputs.version }}
- name: Create GitHub Release
run: |
gh release create v${{ github.event.inputs.version }} \
--title "Release v${{ github.event.inputs.version }}" \
--notes "Changelog:\n- Added feature 1\n- Added feature 2\n- Fixed issue 2"
VERSION=${{ github.event.inputs.version }}
NOTES=${{ github.event.inputs.notes }}
gh release create v$VERSION \
--title "Release v$VERSION" \
--notes "$NOTES"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 43394cc

Please sign in to comment.