From 9c2436c4bc47594cafedb9910a78f1e83831290f Mon Sep 17 00:00:00 2001 From: Mencken Davidson <76002183+menckend@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:00:30 -0400 Subject: [PATCH] publishing rules chnage --- .github/workflows/publish-commits-to-pypi-test.yaml | 2 +- .github/workflows/publish-release-to-pypi.yaml | 5 +++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-commits-to-pypi-test.yaml b/.github/workflows/publish-commits-to-pypi-test.yaml index 51c2eb0..6b2637e 100644 --- a/.github/workflows/publish-commits-to-pypi-test.yaml +++ b/.github/workflows/publish-commits-to-pypi-test.yaml @@ -5,7 +5,7 @@ jobs: build: if: ${{ ! startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on non-tagged commits env: - SETUPTOOLS_SCM_PRETEND_VERSION : "0.0.1.198" + SETUPTOOLS_SCM_PRETEND_VERSION : "0.0.1.3248" environment: name: testpypi url: https://test.pypi.org/p/dcnodatg diff --git a/.github/workflows/publish-release-to-pypi.yaml b/.github/workflows/publish-release-to-pypi.yaml index ce0fc8b..ad9a97e 100644 --- a/.github/workflows/publish-release-to-pypi.yaml +++ b/.github/workflows/publish-release-to-pypi.yaml @@ -1,6 +1,7 @@ name: Publish Release package to Pypi.org -on: push +on: release + types: [published] jobs: build: @@ -29,7 +30,7 @@ jobs: name: python-package-distributions path: dist/ publish-to-pypi: - if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits + #if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits #if: startsWith(github.ref, 'nevermatch') name: >- Publish Python istribution to PyPI diff --git a/pyproject.toml b/pyproject.toml index 1750e13..7e0c1af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] version_file = "dcnodatg/_version.py" -fallback_version = '0.0.0' +#fallback_version = '0.0.0' #version_scheme : str | Callable[[ScmVersion], str] [tool.setuptools.packages.find]