diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/release.yml similarity index 95% rename from .github/workflows/build-and-publish.yml rename to .github/workflows/release.yml index a4a36e0..d19230d 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,7 @@ name: Publish Python 🐍 distributions 📦 to PyPI -on: - push: - branches: - - main +on: + release: + types: [created] jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI