Skip to content

Commit

Permalink
publishing rules chnage
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend committed Oct 15, 2024
1 parent 332c7e3 commit 9c2436c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-commits-to-pypi-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish-release-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Release package to Pypi.org

on: push
on: release
types: [published]

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9c2436c

Please sign in to comment.