Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sbusso committed Apr 27, 2024
1 parent 8dc8525 commit b8e6527
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,29 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
release:
runs-on: ubuntu-latest

steps:
- name: Create GitHub release
uses: Roang-zero1/github-create-release-action@v3
- name: checkout
uses: actions/checkout@v2

- name: conventional changelog action
id: changelog
# https://github.com/TriPSs/conventional-changelog-action
uses: TriPSs/conventional-changelog-action@latest
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
# you can also create separate token to trace action
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: create release
# https://github.com/actions/create-release
uses: softprops/action-gh-release@v1
if: ${{steps.changelog.outputs.skipped == 'false'}}
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{steps.changelog.outputs.clean_changelog}}
draft: false
prerelease: false

0 comments on commit b8e6527

Please sign in to comment.