File tree 1 file changed +1
-24
lines changed
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
2
2
3
3
on :
4
4
push :
5
- branches : [main]
5
+ branches :
6
6
tags : ["*"]
7
7
pull_request :
8
- branches : [main]
9
8
release :
10
9
types :
11
10
- published
25
24
26
25
- uses : hynek/build-and-inspect-python-package@v1
27
26
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
-
50
27
# Upload to real PyPI on GitHub Releases.
51
28
release-pypi :
52
29
name : Publish to PyPI
You can’t perform that action at this time.
0 commit comments