diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 76edbc8..2b4a4d1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,7 +16,7 @@ jobs: permissions: id-token: write if: | - "github.repository == 'MDAnalysis/mda-xdrlib'" && + github.repository == 'MDAnalysis/mda-xdrlib' && (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') name: Build, upload and test pure Python wheels to TestPypi runs-on: ubuntu-latest @@ -38,7 +38,7 @@ jobs: permissions: id-token: write if: | - "github.repository == 'MDAnalysis/mda-xdrlib'" && + github.repository == 'MDAnalysis/mda-xdrlib' && (github.event_name == 'release' && github.event.action == 'published') name: Build, upload and test pure Python wheels to PyPi runs-on: ubuntu-latest