Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fde71d892c | ||
| 08e2ba4cf5 | |||
| f37372acfa | |||
| 00097b0301 | |||
| 78b76b057f | |||
| 9d04c05a40 | |||
| 0ebae7900b | |||
| a521361f7c | |||
| acf80c9e57 | |||
| 6f5957a52f | |||
| 43e9660c17 | |||
| 348ca30333 |
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.6"
|
current_version = "0.1.7"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ on:
|
|||||||
- 'minor'
|
- 'minor'
|
||||||
- 'patch'
|
- 'patch'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -55,62 +57,34 @@ 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
|
||||||
|
id: add_release_notes
|
||||||
|
run: |
|
||||||
|
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||||
|
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||||
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
- name: Generate Changelog
|
||||||
|
uses: spring-io/github-changelog-generator@main
|
||||||
with:
|
with:
|
||||||
platform: "gitea" # gitea or GitHub, default is GitHub
|
milestone: '1.0.0'
|
||||||
mode: "COMMIT"
|
|
||||||
configurationJson: |
|
- name: Set changelog to environment
|
||||||
{
|
id: set_changelog
|
||||||
"template": "#{{CHANGELOG}}",
|
run: |
|
||||||
"categories": [
|
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||||
{
|
echo "$(cat changelog.md)" >> $GITHUB_ENV
|
||||||
"title": "## Feature",
|
echo "EOF" >> $GITHUB_ENV
|
||||||
"labels": ["feat", "feature"]
|
- name: Create release
|
||||||
},
|
id: create_release
|
||||||
{
|
|
||||||
"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_path: changelog.md
|
||||||
|
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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user