From ab5281e4212e67c2abd8fcca9e57c8eb50402e04 Mon Sep 17 00:00:00 2001 From: Sezer BOZKIR Date: Wed, 29 Nov 2023 11:34:05 +0300 Subject: [PATCH] actions is fixed --- .github/workflows/publish-to-pypi.yml | 5 ++++- .github/workflows/publish-to-test-pypi.yml | 5 ++++- setup.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 521d3df..3eda4b2 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish to PyPI -on: push +on: + push: + branches: + - master jobs: build-n-publish: diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index cc66c1f..0062260 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,6 +1,9 @@ name: Publish to TestPyPI -on: push +on: + push: + branches: + - master jobs: build-n-publish: diff --git a/setup.py b/setup.py index 30df57b..17ae9e8 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def local_scheme(version): setup( name='django-db-logger', version='0.1.13', - use_scm_version={"local_scheme": local_scheme} if os.getenv('TestPypi') == 'yes' else False, # using `setuptools_scm` when publish to test.pypi + # use_scm_version={"local_scheme": local_scheme} if os.getenv('TestPypi') == 'yes' else False, # using `setuptools_scm` when publish to test.pypi setup_requires=['setuptools_scm'], packages=['django_db_logger', 'django_db_logger.migrations'], include_package_data=True,