From c8408d210683e91ab685966858110815a992c934 Mon Sep 17 00:00:00 2001 From: Hussaini Usman Date: Wed, 4 Sep 2024 14:24:06 +0100 Subject: [PATCH] update main.yml workflow --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ae4b0d..2ef70fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ on: pull_request: branches: - main + release: + types: [created] jobs: lint: @@ -49,7 +51,7 @@ jobs: publish-to-pypi: name: Publish Python 🐍 distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags/') - needs: [build] + needs: [lint, build] runs-on: ubuntu-latest environment: name: pypi