29 Commits

Author SHA1 Message Date
Gitea CI
794b1ff5e1 Bump version: 1.0.1 → 1.0.2 2025-05-29 09:51:24 +00:00
fc70ae2bdc Merge pull request 'test wf in normal mode' (#6) from dev into main
Reviewed-on: #6
2025-05-29 10:50:52 +01:00
6598e30a42 update hello.py 2025-05-29 11:50:31 +02:00
b07928c8af remove commit mode 2025-05-29 11:50:23 +02:00
Gitea CI
3a47378dc1 Bump version: 1.0.0 → 1.0.1 2025-05-29 09:47:10 +00:00
09c240089f just some bs to hopefully show up in changelog 2025-05-29 11:46:43 +02:00
Gitea CI
9c130ac1d0 Bump version: 0.1.29 → 1.0.0 2025-05-29 09:44:21 +00:00
Gitea CI
721e817b20 Bump version: 0.1.28 → 0.1.29 2025-05-29 09:43:22 +00:00
4a51f0c8e1 add v to release tag 2025-05-29 11:42:55 +02:00
bacdf95171 Add success message after script execution 2025-05-29 11:42:16 +02:00
Gitea CI
b9143544c4 Bump version: 0.1.27 → 0.1.28 2025-05-29 09:17:18 +00:00
4e59dfad54 Refactor release workflow: uncomment and configure push changes, build changelog, and create release steps 2025-05-29 11:16:56 +02:00
a0d0535044 Enable tagging and commit options in bumpversion configuration 2025-05-29 11:15:29 +02:00
ea16d817e1 Remove --locked option from uv sync command in release workflow 2025-05-29 11:13:40 +02:00
9e2621cd60 move bump to pyproject 2025-05-29 11:10:20 +02:00
655b6c0df5 Bump version: 0.1.26 → 0.1.27 2025-05-29 11:09:47 +02:00
605dc750e7 Bump version: 0.1.25 → 0.1.26 2025-05-29 11:09:47 +02:00
78faddf56e Bump version: 0.1.24 → 0.1.25 2025-05-29 11:09:47 +02:00
2686d822cd Update .gitea/workflows/relase.yml 2025-05-29 10:02:47 +01:00
a121e59f47 Refactor release workflow by commenting out unused steps for clarity 2025-05-29 11:01:48 +02:00
Gitea CI
bdc46d7f37 Bump version: 0.1.23 → 0.1.24 2025-05-29 08:58:46 +00:00
Gitea CI
4259f49d94 Bump version: 0.1.22 → 0.1.23 2025-05-29 08:52:44 +00:00
95e2cdcdce Fix changelog action usage by specifying the full GitHub URL for the action 2025-05-29 10:52:21 +02:00
Gitea CI
55d0cb50e6 Bump version: 0.1.21 → 0.1.22 2025-05-29 08:48:29 +00:00
3424805d4e bump version of changelog generator 2025-05-29 10:47:35 +02:00
Gitea CI
5c0fcbdb66 Bump version: 0.1.20 → 0.1.21 2025-05-29 08:46:59 +00:00
f35e19d44d Refactor changelog action to use environment variable for Gitea token 2025-05-29 10:45:52 +02:00
Gitea CI
ef54d663d2 Bump version: 0.1.19 → 0.1.20 2025-05-29 08:43:15 +00:00
2ab0dcd60b Fix changelog action ID and update token secret for Gitea integration 2025-05-29 10:42:50 +02:00
5 changed files with 37 additions and 30 deletions

View File

@@ -1,22 +0,0 @@
[tool.bumpversion]
current_version = "0.1.19"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []
[[tool.bumpversion.files]]
filename = ".version"

View File

@@ -37,7 +37,7 @@ jobs:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --locked --all-extras --dev
run: uv sync --all-extras --dev
- name: Set Git identity
run: |
git config user.name "Gitea CI"
@@ -52,7 +52,9 @@ jobs:
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Check version
run: echo ${{ env.VERSION }}
run: |
echo ${{ env.VERSION }}
cat pyproject.toml
- name: Push changes
uses: ad-m/github-push-action@master
with:
@@ -60,12 +62,15 @@ jobs:
branch: ${{ github.ref }}
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v2
id: build_changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
with:
platform: "gitea"
baseURL: "http://gitea:3000"
configuration: ".gitea/changelog-config.json"
token: ${{ secrets.TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
- name: Create release
@@ -73,7 +78,7 @@ jobs:
if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@master
with:
tag_name: ${{ env.VERSION }}
tag_name: v${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false

View File

@@ -1 +1 @@
0.1.19
0.1.27

View File

@@ -6,7 +6,9 @@ def main():
def get_version():
with open(".version") as f:
return f.read().strip()
print("Version file not found. Returning default version '0.0.0'.")
if __name__ == "__main__":
main()
print("This script has been executed successfully.")

View File

@@ -1,6 +1,6 @@
[project]
name = "workflowbumptester"
version = "0.1.0"
version = "1.0.2"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
@@ -8,3 +8,25 @@ dependencies = [
"bump-my-version>=1.1.3",
"pyyaml>=6.0.2",
]
[tool.bumpversion]
current_version = "1.0.2"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = true
commit = true
message = "Bump version: {current_version} → {new_version}"
moveable_tags = []
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []