Skip to content

Commit

Permalink
[MNT] pypi release only on GH release (#1656)
Browse files Browse the repository at this point in the history
This PR ensures that the release workflow is triggered only on GitHub release.

Currently, it seems the release is triggered on every push to `master` - though it has thankfully failed for the past merges.
  • Loading branch information
fkiraly authored Sep 7, 2024
1 parent e2bf3fd commit fa3dc24
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
name: PyPI Release

# https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
release:
types:
- created
types: [published]

jobs:
build:
Expand Down

0 comments on commit fa3dc24

Please sign in to comment.