Skip to content

Commit

Permalink
PyPi workflow should work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamere-allo-peter committed May 4, 2022
1 parent 406e748 commit e04097a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
name: Publish Python packages to PyPI

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]
tags: '*.*.*'
types: [closed]

jobs:
build-n-publish:
name: Build and publish Python packages
# We publish only on merge and if tagged
if: startsWith(github.ref, 'refs/tags') && github.event.pull_request.merged
# We publish only if tagged
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e04097a

Please sign in to comment.