Skip to content

Commit e642a8b

Browse files
authored
ci: update production release workflow to use version tags without 'v' prefix and bump project version to 1.1.2 (#32)
1 parent 5d1a66a commit e642a8b

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish 📦 to PyPI
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- "*.*.*"
77

88
permissions:
99
contents: read
@@ -27,7 +27,7 @@ jobs:
2727
2828
git_tag = os.environ["GITHUB_REF_NAME"]
2929
version = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"]["version"]
30-
expected_tag = f"v{version}"
30+
expected_tag = version
3131
if git_tag != expected_tag:
3232
raise SystemExit(f"Tag {git_tag!r} does not match project version {expected_tag!r}")
3333
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as fh:

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The repository publishes from GitHub Actions using a gated release flow:
6868
- `CI` runs a package build check separately
6969
- publish workflows reuse `CI` before building release artifacts
7070
- release artifacts are built once, uploaded, and published from those exact artifacts
71-
- production publishing happens only from tags in the format `vX.Y.Z`
71+
- production publishing happens only from tags in the format `X.Y.Z`
7272
- the production workflow validates that the Git tag matches `project.version`
7373
- publishing uses PyPI Trusted Publishing, not long-lived API tokens
7474
- TestPyPI publishing is manual via `workflow_dispatch`
@@ -88,8 +88,8 @@ Recommended production release flow:
8888
make test
8989
make lint
9090
make build
91-
git tag v1.0.1
92-
git push origin v1.0.1
91+
git tag 1.1.2
92+
git push origin 1.1.2
9393
```
9494

9595
After the tag is pushed, the PyPI workflow publishes that version if CI passes and the tag matches the package version.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This project follows a tag-driven release process for production publishing:
66

77
- CI runs on pull requests and pushes
8-
- production publishing runs only from tags matching `vX.Y.Z`
8+
- production publishing runs only from tags matching `X.Y.Z`
99
- the release workflow validates that the Git tag matches `project.version`
1010
- production and TestPyPI publishing use Trusted Publishing with GitHub OIDC
1111
- release artifacts are built in CI and published from those exact artifacts

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "django-dbml"
7-
version = "1.1.1"
7+
version = "1.1.2"
88
description = "Django extension aimed to generate DBML from installed models."
99
readme = "README.md"
1010
requires-python = ">=3.11"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)