diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bfb730..8373473 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,8 +89,9 @@ jobs: - name: Build distribution run: make build-dist - # Requires TWINE_PASSWORD to be configured in secrets + # Requires TWINE_TOKEN to be configured in repo secrets - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: + password: ${{ secrets.TWINE_TOKEN }} verbose: true diff --git a/Makefile b/Makefile index 50c26a0..adc867e 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,11 @@ build-dist: rm -fr dist ${PYTHON} -m build +local-build: + rm -fr dist + ${PYTHON} -m pip install .[publish] + ${PYTHON} -m build + # This target requires the TWINE_PASSWORD env variable to be set to the user's pypi.org API token. publish-dist: TWINE_USERNAME=__token__ ${PYTHON} -m twine upload --non-interactive --verbose dist/* diff --git a/pyproject.toml b/pyproject.toml index 9823529..f0b34aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,6 @@ name = "ibm_continuous_delivery" version = "2.0.5" authors = [ - { name="Omar Al Bastami", email="omar.albastami@ibm.com" }, { name="Brian Gleeson", email="brian.gleeson@ie.ibm.com" } ] description = "Python client library to interact with the IBM Cloud Continuous Delivery Toolchain and Tekton Pipeline APIs"