From f3708e039b1b66822382badc2d0e137ec7c97f8f Mon Sep 17 00:00:00 2001 From: Olivier Hoenen Date: Tue, 7 Jan 2025 23:32:43 +0100 Subject: [PATCH] publish on testpypi when pushed to develop --- .github/workflows/publish_pypi.yml | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index c718dee..8d02c88 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -50,6 +50,7 @@ jobs: publish-to-testpypi: name: Publish imas-data-dictionary distribution to TestPyPI + if: github.ref=='refs/heads/develop' # only publish to TestPyPI on develop pushes needs: - build runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 087a33b..109f687 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ homepage = "https://github.com/iterorganization/imas-data-dictionary" [tool.setuptools_scm] write_to = "data_dictionary/_version.py" +local_scheme = "no-local-version" [tool.setuptools.packages.find] where = ["."]