re-add softprops release

This commit is contained in:
2025-05-20 15:11:40 +02:00
parent 110888307c
commit 348ca30333

View File

@@ -55,62 +55,23 @@ jobs:
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} branch: ${{ github.ref }}
- name: Build Changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5 - name: Add release notes to environment
with: id: add_release_notes
platform: "gitea" # gitea or GitHub, default is GitHub run: |
mode: "COMMIT" echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
configurationJson: | echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
{ echo "EOF" >> $GITHUB_ENV
"template": "#{{CHANGELOG}}", - name: Create release
"categories": [ id: create_release
{
"title": "## Feature",
"labels": ["feat", "feature"]
},
{
"title": "## Fix",
"labels": ["fix", "bug"]
},
{
"title": "## Other",
"labels": []
}
],
"label_extractor": [
{
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"on_property": "title",
"target": "$1"
}
]
}
token: ${{ secrets.TOKEN }}
owner: WorldTeacher
- name: create Release
if: ${{ github.event.inputs.github_release == 'true' }} if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@master uses: softprops/action-gh-release@master
with: with:
tag_name: ${{ env.VERSION }} tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }} release_name: Release ${{ env.VERSION }}
body: ${{ steps.changelog.outputs.changelog }} body: ${{ env.RELEASE_NOTES }}
draft: false
# - name: Add release notes to environment prerelease: false
# id: add_release_notes make_latest: true
# run: | env:
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV GITHUB_TOKEN: ${{ secrets.TOKEN }}
# echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
# echo "EOF" >> $GITHUB_ENV
# - name: Create release
# id: create_release
# if: ${{ github.event.inputs.github_release == 'true' }}
# uses: softprops/action-gh-release@master
# with:
# tag_name: ${{ env.VERSION }}
# release_name: Release ${{ env.VERSION }}
# body: ${{ env.RELEASE_NOTES }}
# draft: false
# prerelease: false
# make_latest: true
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}