Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down