Skip to content

Commit 7e55875

Browse files
committed
Changed CD trigger event to release.
1 parent a43ac07 commit 7e55875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish_pypi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: PyPi publish
2+
23
on:
3-
push:
4-
branches:
5-
- main
4+
release:
5+
types:
6+
- created
67

78
env:
89
CACHE_NUMBER: 3 # Increase this value to reset cache if dependencies didn't change.
@@ -78,7 +79,6 @@ jobs:
7879
# repository_url: https://test.pypi.org/legacy/
7980

8081
- name: Publish distribution 📦 to PyPI
81-
if: startsWith(github.ref, 'refs/tags')
8282
uses: pypa/gh-action-pypi-publish@release/v1
8383
with:
8484
user: __token__

0 commit comments

Comments
 (0)