From bc77ee84d3138670bb5cb434982513368a4eaa39 Mon Sep 17 00:00:00 2001 From: Slavina S Date: Sun, 19 Dec 2021 11:50:20 +0100 Subject: [PATCH] Run PyPI publish workflow only on manual release --- .github/workflows/{build-and-publish.yml => release.yml} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename .github/workflows/{build-and-publish.yml => release.yml} (95%) 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