File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ name: Build & maybe upload PyPI package
22
33on :
44 push :
5- branches : [main]
5+ branches :
66 tags : ["*"]
77 pull_request :
8- branches : [main]
98 release :
109 types :
1110 - published
2524
2625 - uses : hynek/build-and-inspect-python-package@v1
2726
28- # Upload to Test PyPI on every commit on main.
29- release-test-pypi :
30- name : Publish in-dev package to test.pypi.org
31- if : github.repository_owner == 'python' && github.event_name == 'push' && github.ref == 'refs/heads/main'
32- runs-on : ubuntu-latest
33- needs : build-package
34-
35- permissions :
36- id-token : write
37-
38- steps :
39- - name : Download packages built by build-and-inspect-python-package
40- uses : actions/download-artifact@v3
41- with :
42- name : Packages
43- path : dist
44-
45- - name : Upload package to Test PyPI
46- uses : pypa/gh-action-pypi-publish@release/v1
47- with :
48- repository-url : https://test.pypi.org/legacy/
49-
5027 # Upload to real PyPI on GitHub Releases.
5128 release-pypi :
5229 name : Publish to PyPI
You can’t perform that action at this time.
0 commit comments