File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- name : Publish Python π distribution π¦ to PyPI and TestPyPI
1+ name : Publish cloudpickle π₯ distribution π¦ to PyPI and TestPyPI
22# Taken from:
33# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
44
77jobs :
88 build :
99 name : Build distribution π¦
10+ # Don't run on forked repositories
11+ if : github.event.repository.fork != true
1012 runs-on : ubuntu-latest
1113
1214 steps :
@@ -30,10 +32,11 @@ jobs:
3032 with :
3133 name : python-package-distributions
3234 path : dist/
35+ retention-days : 1
3336
3437 publish-to-pypi :
3538 name : >-
36- Publish Python π distribution π¦ to PyPI
39+ Publish cloudpickle π₯ distribution π¦ to PyPI
3740 if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3841 needs :
3942 - build
5558
5659 github-release :
5760 name : >-
58- Sign the Python π distribution π¦ with Sigstore
61+ Sign the cloudpickle π₯ distribution π¦ with Sigstore
5962 and upload them to GitHub Release
6063 needs :
6164 - publish-to-pypi
97100 --repo "$GITHUB_REPOSITORY"
98101
99102 publish-to-testpypi :
100- name : Publish Python π distribution π¦ to TestPyPI
103+ name : Publish cloudpickle π₯ distribution π¦ to TestPyPI
101104 needs :
102105 - build
103106 runs-on : ubuntu-latest
You canβt perform that action at this time.
0 commit comments