From f58688f5c79ff99f011464371de953c1a72705c8 Mon Sep 17 00:00:00 2001 From: samuelarogbonlo Date: Sat, 11 Jan 2025 07:06:43 +0100 Subject: [PATCH] ci: switch to PyPI trusted publishing --- .github/workflows/publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fe8d9b3..405720a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,9 @@ name: Publish to PyPI on: - release: - types: [created] + push: + tags: + - 'v*' jobs: pypi-publish: @@ -24,5 +25,8 @@ jobs: - name: Build package run: python -m build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ + verbose: true \ No newline at end of file