11 Commits

Author SHA1 Message Date
Gitea CI
bad48af5e2 Bump version: 0.1.2 → 0.1.3 2025-05-20 11:56:19 +00:00
e722901611 chore: include release in wf 2025-05-20 13:54:27 +02:00
e2b60f5f9e Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-20 13:53:52 +02:00
542fc9f548 feat: update gitignore 2025-05-20 13:53:27 +02:00
Gitea CI
96129a369c Bump version: 0.1.1 → 0.1.2 2025-05-20 11:51:16 +00:00
Gitea CI
26bfcb12ee Bump version: 0.1.0 → 0.1.1 2025-05-20 11:49:43 +00:00
1bdc6e484b add pushing to wf 2025-05-20 13:48:45 +02:00
91950491c4 enable commit 2025-05-20 13:44:11 +02:00
183e880bd9 disable release, test implementation of ci_release 2025-05-20 13:40:57 +02:00
b07f801258 delete release.yml, add ci test 2025-05-20 12:43:35 +02:00
6a15cf9f9b test release template 2025-05-20 10:50:00 +02:00
5 changed files with 112 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.1.0"
current_version = "0.1.3"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
@@ -12,7 +12,7 @@ sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = false
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
setup_hooks = []

View File

@@ -0,0 +1,48 @@
name: 'CI'
on:
push:
tags:
- '*'
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Build Changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
with:
platform: "gitea" # gitea or GitHub, default is GitHub
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 }}
- name: create Release
uses: softprops/action-gh-release@master
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.changelog.outputs.changelog }}

View File

@@ -43,31 +43,73 @@ jobs:
id: bump
run: |
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 "VERSION<<EOF" >> $GITHUB_ENV
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Check version
run: echo ${{ env.VERSION }}
- 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: Create release
id: create_release
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Build Changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
with:
platform: "gitea" # gitea or GitHub, default is GitHub
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 }}
- name: create Release
if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@v2
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 }}
body: ${{ steps.changelog.outputs.changelog }}
# - 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: 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
View File

@@ -230,3 +230,4 @@ config.yaml
.venv
venv
*.log
Wallpapers/

View File

@@ -1 +1 @@
0.1.0
0.1.3