Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c12acfdade | |||
| e06d9e9581 | |||
| b0998a7d86 | |||
| cc11efb3ae | |||
| 7de3e92871 |
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.3.13"
|
current_version = "0.3.14"
|
||||||
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}"
|
||||||
@@ -8,7 +8,7 @@ regex = false
|
|||||||
allow_dirty = false
|
allow_dirty = false
|
||||||
commit = true
|
commit = true
|
||||||
tag = false
|
tag = false
|
||||||
message = "chore: bump version {current_version} -> {new_version} [skip ci]"
|
message = "chore: bump version {current_version} -> {new_version}"
|
||||||
pre_commit_hooks = ["uv lock", "git add uv.lock"]
|
pre_commit_hooks = ["uv lock", "git add uv.lock"]
|
||||||
|
|
||||||
[[tool.bumpversion.files]]
|
[[tool.bumpversion.files]]
|
||||||
|
|||||||
+34
-5
@@ -2,10 +2,9 @@ name: CI
|
|||||||
|
|
||||||
"on":
|
"on":
|
||||||
push:
|
push:
|
||||||
branches: ["**"]
|
branches: ["master"]
|
||||||
tags: ["**"]
|
tags: ["**"]
|
||||||
pull_request:
|
pull_request: {}
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UV_CACHE_DIR: /uv-cache
|
UV_CACHE_DIR: /uv-cache
|
||||||
@@ -156,7 +155,7 @@ jobs:
|
|||||||
uv run git-cliff --tag "$TAG" --unreleased --prepend CHANGELOG.md
|
uv run git-cliff --tag "$TAG" --unreleased --prepend CHANGELOG.md
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
if ! git diff --cached --quiet -- CHANGELOG.md; then
|
if ! git diff --cached --quiet -- CHANGELOG.md; then
|
||||||
git commit -m "chore: update changelog for $TAG [skip ci]"
|
git commit -m "chore: update changelog for $TAG"
|
||||||
else
|
else
|
||||||
git restore --staged CHANGELOG.md
|
git restore --staged CHANGELOG.md
|
||||||
fi
|
fi
|
||||||
@@ -193,7 +192,7 @@ jobs:
|
|||||||
git config user.name "gitea-actions"
|
git config user.name "gitea-actions"
|
||||||
git config user.email "actions@git.larsbogner.de"
|
git config user.email "actions@git.larsbogner.de"
|
||||||
git add pyproject.toml uv.lock
|
git add pyproject.toml uv.lock
|
||||||
git commit -m "chore: sync project version to tag ${GITHUB_REF_NAME} [skip ci]"
|
git commit -m "chore: sync project version to tag ${GITHUB_REF_NAME}"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
git push origin ":refs/tags/${GITHUB_REF_NAME}"
|
git push origin ":refs/tags/${GITHUB_REF_NAME}"
|
||||||
git tag -f "${GITHUB_REF_NAME}" HEAD
|
git tag -f "${GITHUB_REF_NAME}" HEAD
|
||||||
@@ -201,3 +200,33 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Tag version matches project version ($CURRENT_VERSION)"
|
echo "Tag version matches project version ($CURRENT_VERSION)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
publish-package:
|
||||||
|
name: Publish package to Gitea package registry
|
||||||
|
needs: [ruff-check, ruff-format, type-check, test, sync-version-on-tag]
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker.gitea.com/runner-images:ubuntu-latest
|
||||||
|
volumes:
|
||||||
|
- /srv/act-runner-cache/uv:/uv-cache
|
||||||
|
steps:
|
||||||
|
# Check out by tag name (not the triggering SHA) since sync-version-on-tag
|
||||||
|
# may have force-moved the tag to a version-corrected commit.
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
|
- uses: astral-sh/setup-uv@v5
|
||||||
|
with:
|
||||||
|
enable-cache: false
|
||||||
|
- run: |
|
||||||
|
echo "UV_CACHE_DIR=/uv-cache" >> "$GITHUB_ENV"
|
||||||
|
echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"
|
||||||
|
- run: uv build
|
||||||
|
# CI_TOKEN needs write:package scope (in addition to write:repository,
|
||||||
|
# used elsewhere) for this upload to authenticate.
|
||||||
|
- run: |
|
||||||
|
uv publish \
|
||||||
|
--publish-url "https://git.larsbogner.de/api/packages/lars/pypi" \
|
||||||
|
--username gitea-actions \
|
||||||
|
--password "${{ secrets.CI_TOKEN }}"
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.3.14] - 2026-08-28
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Ci: give automated commits visible checks, scope CI triggers, publish releases
|
||||||
|
|
||||||
|
- Ci: fix pull_request trigger not registering
|
||||||
|
|
||||||
## [0.3.13] - 2026-08-28
|
## [0.3.13] - 2026-08-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ commit_preprocessors = [
|
|||||||
protect_breaking_commits = false
|
protect_breaking_commits = false
|
||||||
commit_parsers = [
|
commit_parsers = [
|
||||||
{ message = "^Merge ", skip = true },
|
{ message = "^Merge ", skip = true },
|
||||||
{ message = "\\[skip ci\\]", skip = true },
|
{ message = "^chore: (bump version|update changelog|sync project version)", skip = true },
|
||||||
{ message = "^Add", group = "<!-- 0 -->Added" },
|
{ message = "^Add", group = "<!-- 0 -->Added" },
|
||||||
{ message = "^(Fix|Clamp|Clip)", group = "<!-- 1 -->Fixed" },
|
{ message = "^(Fix|Clamp|Clip)", group = "<!-- 1 -->Fixed" },
|
||||||
{ message = "^(Remove|Drop|Deprecate)", group = "<!-- 2 -->Removed" },
|
{ message = "^(Remove|Drop|Deprecate)", group = "<!-- 2 -->Removed" },
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "giant"
|
name = "giant"
|
||||||
version = "0.3.13"
|
version = "0.3.14"
|
||||||
description = "Geant4 step-function surrogate via conditional flow matching"
|
description = "Geant4 step-function surrogate via conditional flow matching"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
Reference in New Issue
Block a user