Skip to content

Commit

Permalink
chore(CI): Add manually triggerable PyPI publication
Browse files Browse the repository at this point in the history
We used to run the publication on each PR, which could cause conflicts
due to the naming convention being based on the commit history length,
and multiple PRs potentially hitting the same name.

Adding a `workflow_dispatch` trigger allows us to still test the
workflow in PRs but only do so manually (when we're watching anyway).

Changelog-None
  • Loading branch information
cdecker committed Dec 1, 2023
1 parent 3ad57ba commit f477112
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on:
# Only deploy if we're the result of a PR being merged
push:
workflow_dispatch:
branches:
- master
tags:
Expand Down

0 comments on commit f477112

Please sign in to comment.