Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71f421a833 | ||
| 110888307c | |||
|
|
4267d1f9fd | ||
| f1be200aae | |||
| 0425009bbd | |||
| b4f215f42f | |||
|
|
bad48af5e2 | ||
| e722901611 | |||
| e2b60f5f9e | |||
| 542fc9f548 | |||
|
|
96129a369c | ||
|
|
26bfcb12ee | ||
| 1bdc6e484b | |||
| 91950491c4 | |||
| 183e880bd9 | |||
| b07f801258 | |||
| 6a15cf9f9b |
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.0"
|
current_version = "0.1.5"
|
||||||
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}"
|
||||||
@@ -12,7 +12,7 @@ sign_tags = false
|
|||||||
tag_name = "v{new_version}"
|
tag_name = "v{new_version}"
|
||||||
tag_message = "Bump version: {current_version} → {new_version}"
|
tag_message = "Bump version: {current_version} → {new_version}"
|
||||||
allow_dirty = false
|
allow_dirty = false
|
||||||
commit = false
|
commit = true
|
||||||
message = "Bump version: {current_version} → {new_version}"
|
message = "Bump version: {current_version} → {new_version}"
|
||||||
commit_args = ""
|
commit_args = ""
|
||||||
setup_hooks = []
|
setup_hooks = []
|
||||||
|
|||||||
13
.gitea/workflows/ci_make_relnotes.yml
Normal file
13
.gitea/workflows/ci_make_relnotes.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
name: "Tests"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout the code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: echo name
|
||||||
|
run: echo ${{ github.event.repository.owner.login }}
|
||||||
@@ -43,31 +43,74 @@ jobs:
|
|||||||
id: bump
|
id: bump
|
||||||
run: |
|
run: |
|
||||||
uv tool install bump-my-version
|
uv tool install bump-my-version
|
||||||
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
|
uv tool run bump-my-version bump ${{ github.event.inputs.bump }}
|
||||||
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
|
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
|
||||||
echo "VERSION<<EOF" >> $GITHUB_ENV
|
echo "VERSION<<EOF" >> $GITHUB_ENV
|
||||||
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
|
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
- name: Check version
|
- name: Check version
|
||||||
run: echo ${{ env.VERSION }}
|
run: echo ${{ env.VERSION }}
|
||||||
|
- name: Push changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
- name: Add release notes to environment
|
with:
|
||||||
id: add_release_notes
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
branch: ${{ github.ref }}
|
||||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
- name: Build Changelog
|
||||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
|
||||||
echo "EOF" >> $GITHUB_ENV
|
with:
|
||||||
- name: Create release
|
platform: "gitea" # gitea or GitHub, default is GitHub
|
||||||
id: create_release
|
mode: "COMMIT"
|
||||||
|
configurationJson: |
|
||||||
|
{
|
||||||
|
"template": "#{{CHANGELOG}}",
|
||||||
|
"categories": [
|
||||||
|
{
|
||||||
|
"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@v2
|
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: ${{ env.RELEASE_NOTES }}
|
body: ${{ steps.changelog.outputs.changelog }}
|
||||||
draft: false
|
|
||||||
prerelease: false
|
# - name: Add release notes to environment
|
||||||
make_latest: true
|
# id: add_release_notes
|
||||||
env:
|
# run: |
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||||
|
# 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 }}
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -230,3 +230,4 @@ config.yaml
|
|||||||
.venv
|
.venv
|
||||||
venv
|
venv
|
||||||
*.log
|
*.log
|
||||||
|
Wallpapers/
|
||||||
Reference in New Issue
Block a user