File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 99 branches :
1010 - master
1111 - maint/*
12+ tags :
13+ - ' *'
1214 pull_request : {}
1315 schedule :
1416 # 8am EST / 9am EDT Mondays
@@ -112,3 +114,44 @@ jobs:
112114 with :
113115 files : cov.xml
114116 token : ${{ secrets.CODECOV_TOKEN }}
117+
118+ test-publish :
119+ name : Push package to test.pypi.org
120+ if : github.event_name == 'push'
121+ runs-on : ubuntu-latest
122+ needs : [build]
123+ permissions :
124+ attestations : write
125+ id-token : write
126+
127+ steps :
128+ - name : Download packages built by build-and-inspect-python-package
129+ uses : actions/download-artifact@v4
130+ with :
131+ name : Packages
132+ path : dist
133+
134+ - name : Upload package to PyPI
135+ uses : pypa/gh-action-pypi-publish@release/v1
136+ with :
137+ repository-url : https://test.pypi.org/legacy/
138+ skip-existing : true
139+
140+ publish :
141+ name : Publish released package to pypi.org
142+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
143+ runs-on : ubuntu-latest
144+ needs : [test, test-publish]
145+ permissions :
146+ attestations : write
147+ id-token : write
148+
149+ steps :
150+ - name : Download packages built by build-and-inspect-python-package
151+ uses : actions/download-artifact@v4
152+ with :
153+ name : Packages
154+ path : dist
155+
156+ - name : Upload package to PyPI
157+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments