Skip to content

Commit

Permalink
Merge pull request #11 from struckchure/fix/publish-ci
Browse files Browse the repository at this point in the history
ci(publish.yml): updates changelog generation
  • Loading branch information
struckchure authored Oct 15, 2024
2 parents 6913438 + fab048c commit 6243780
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,29 @@ jobs:
uv build
uv publish --token ${{ secrets.PYPI_API_TOKEN }}
- uses: ncipollo/release-action@v1
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
writeToFile: false

- name: Create Release
uses: ncipollo/[email protected]
with:
allowUpdates: true
draft: true
makeLatest: true
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
bodyFile: "CHANGELOG.md"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6243780

Please sign in to comment.