From b8e6527516fd1c9f9aff4cf4b9846565f3833386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Busso?= Date: Sat, 27 Apr 2024 17:20:21 +1200 Subject: [PATCH] update release workflow --- .github/workflows/publish.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 61c4d85..99d9da4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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