From 4911faf3ae14f87b2eefdc8ded14465bea3c91e7 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Tue, 25 Nov 2025 11:27:08 +0100 Subject: [PATCH] add dev push version update, manual version bump --- .gitea/workflows/release.yml | 26 +++++++++++++++++++++++++- pyproject.toml | 4 ++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index fa24455..82d8be2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -145,7 +145,31 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ env.PUSH_BRANCH }} + branch: main + - name: Update `dev` branch with new version + run: | + # ensure we have the latest remote refs + git fetch origin dev || true + + # switch to dev if it exists remotely, otherwise create it + if git rev-parse --verify origin/dev >/dev/null 2>&1; then + git checkout dev + git pull origin dev + else + git checkout -b dev + fi + + # replace the version line inside pyproject.toml + sed -E -i "s/^(version\s*=\s*)\".*\"/\1\"${{ env.VERSION }}\"/" pyproject.toml || true + + git add pyproject.toml || true + git commit -m "chore: bump pyproject version for dev -> v${{ env.VERSION }}" || echo "no changes to commit" + + - name: Push dev changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: dev - name: Build Changelog id: build_changelog uses: https://github.com/mikepenz/release-changelog-builder-action@v5 diff --git a/pyproject.toml b/pyproject.toml index d302dcf..b81dd65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "semapform-api" -version = "0.1.0" +version = "0.1.3" description = "Add your description here" readme = "README.md" requires-python = ">=3.13" @@ -14,7 +14,7 @@ name = "gitea" url = "https://git.theprivateserver.de/api/packages/PHB/pypi/simple/" [tool.bumpversion] -current_version = "0.1.0" +current_version = "0.1.3" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}"