Skip to content

Commit f3708e0

Browse files
committed
publish on testpypi when pushed to develop
1 parent b822e50 commit f3708e0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050

5151
publish-to-testpypi:
5252
name: Publish imas-data-dictionary distribution to TestPyPI
53+
if: github.ref=='refs/heads/develop' # only publish to TestPyPI on develop pushes
5354
needs:
5455
- build
5556
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ homepage = "https://github.com/iterorganization/imas-data-dictionary"
2929

3030
[tool.setuptools_scm]
3131
write_to = "data_dictionary/_version.py"
32+
local_scheme = "no-local-version"
3233

3334
[tool.setuptools.packages.find]
3435
where = ["."]

0 commit comments

Comments
 (0)