Skip to content

Commit

Permalink
update main.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Housain-maina committed Sep 4, 2024
1 parent 3be6294 commit c8408d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
release:
types: [created]

jobs:
lint:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c8408d2

Please sign in to comment.