Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
[CI] Release workflow - parse changelog
Browse files Browse the repository at this point in the history
This is only a temporary measure. In the future we'd want to do it the other way around - automatically create the changelog from diff
  • Loading branch information
igiloh-pinecone committed Jan 16, 2024
1 parent dec8f94 commit eea2398
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ jobs:
git checkout -b release/$(poetry version -s)
git push origin release/$(poetry version -s)
- name: Parse Changelog
id: changelog
uses: ocavue/changelog-parser-action@v1

- name: Create GH release
uses: ncipollo/release-action@v1
env:
Expand All @@ -136,7 +140,7 @@ jobs:
tag: v${{ needs.build.outputs.new_version }}
name: ${{ needs.build.outputs.new_version }}
artifacts: "dist/*"
bodyFile: "CHANGELOG.md"
body: ${{ steps.changelog.outputs.latestBody }}
prerelease: ${{ startsWith(inputs.versionLevel, 'pre') }}

- name: Publish to test pypi
Expand Down

0 comments on commit eea2398

Please sign in to comment.