We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49617c5 commit dddbf1aCopy full SHA for dddbf1a
.github/workflows/publish.yml
@@ -16,6 +16,14 @@ jobs:
16
steps:
17
- uses: actions/checkout@v4
18
19
+ - name: Set version in manifest.json
20
+ run: |
21
+ # Extract version from tag (e.g., "refs/tags/v1.2.3" becomes "1.2.3")
22
+ version="${GITHUB_REF#refs/tags/v}"
23
+ echo "Setting version to ${version}"
24
+ # Update the version in pyproject.toml (assumes a `version = "..."` line)
25
+ sed -i -E "s/^version = \"[^\"]+\"/version = \"${version}\"/" pyproject.toml
26
+
27
- name: Set up Python
28
uses: actions/setup-python@v4
29
with:
pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
5
[project]
6
name = "volvocarsapi"
7
-version = "0.0.1"
+version = "0.0.0"
8
authors = [
9
{ name="thomasddn" },
10
]
0 commit comments