From 8f30af15c87d4c32dd11a50461161fe5bc9dcd78 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 2 Nov 2023 09:02:57 +0100 Subject: [PATCH] ci: do not tag releases in the CI This generates unsigned tag. Rather use releases from GitHub to upload automatically. --- .github/workflows/release.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c1f5a9..92ae437 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: upload release to PyPI on: - workflow_dispatch: + release: + - published jobs: pypi-publish: @@ -20,15 +21,6 @@ jobs: with: python-version: 3.12 - - name: Install deps - run: pip install build setuptools_scm - - - name: Tag the release - run: | - tag="$(python3 -m setuptools_scm --strip-dev)" - git tag "$tag" - git push origin "$tag" - - name: Build the packages distributions run: | python3 -m build . --wheel --sdist