From b480ece611cf9449db2125455ce2ca4c601bc042 Mon Sep 17 00:00:00 2001 From: lmbelo Date: Fri, 28 Jul 2023 08:50:37 -0300 Subject: [PATCH 1/2] Renaming distribution name from idb to interbase --- PKG-INFO | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PKG-INFO b/PKG-INFO index 0ed15e1..0beb2f6 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,5 +1,5 @@ Metadata-Version: 1.1 -Name: idb +Name: interbase Version: 1.5.0 Summary: InterBase RDBMS bindings for Python. Home-page: https://github.com/Embarcadero/InterBasePython diff --git a/setup.cfg b/setup.cfg index 689527d..5274824 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,7 +9,7 @@ all-files = True [metadata] -name = idb +name = interbase version = 1.5.0 description = InterBase RDBMS bindings for Python. long_description = file: README.md From 904dace132adab2c113d3a750f3ab6e2c49d88c6 Mon Sep 17 00:00:00 2001 From: lmbelo Date: Fri, 28 Jul 2023 09:24:31 -0300 Subject: [PATCH 2/2] PyPI deployment upon main branch commits only --- .github/workflows/pypi.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 424e4b0..bf5e152 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -43,7 +43,8 @@ jobs: name: pypi url: https://test.pypi.org/p/interbasepython permissions: - id-token: write + id-token: write + if: github.ref == 'refs/heads/main' steps: - uses: actions/download-artifact@v2 with: @@ -64,7 +65,7 @@ jobs: url: https://pypi.org/p/interbasepython permissions: id-token: write - if: startsWith(github.ref, 'refs/tags/v') + if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 with: @@ -72,4 +73,4 @@ jobs: path: dist - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file