Skip to content

Commit

Permalink
Use changelog for GH release descriptions (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Aug 19, 2024
1 parent ee4edbe commit 3d3ee54
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 119 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,24 @@ jobs:
poetry build
poetry publish
- name: Build GitHub release
uses: "marvinpinto/action-automatic-releases@latest"
# FIXME: Fails on prereleases; https://github.com/mindsers/changelog-reader-action/pull/39
- name: Parse changelog
id: changelog
uses: mindsers/changelog-reader-action@v2
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
version: ${{ github.ref_name }}

- name: Publish GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ steps.changelog.outputs.version }}
body: |
## ${{ steps.changelog.outputs.version }} - ${{ steps.changelog.outputs.date }}
${{ steps.changelog.outputs.changes }}
draft: false
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
Loading

0 comments on commit 3d3ee54

Please sign in to comment.