File tree 1 file changed +7
-4
lines changed
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
2
2
# Taken from:
3
3
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
4
4
7
7
jobs :
8
8
build :
9
9
name : Build distribution π¦
10
+ # Don't run on forked repositories
11
+ if : github.event.repository.fork != true
10
12
runs-on : ubuntu-latest
11
13
12
14
steps :
@@ -30,10 +32,11 @@ jobs:
30
32
with :
31
33
name : python-package-distributions
32
34
path : dist/
35
+ retention-days : 1
33
36
34
37
publish-to-pypi :
35
38
name : >-
36
- Publish Python π distribution π¦ to PyPI
39
+ Publish cloudpickle π₯ distribution π¦ to PyPI
37
40
if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
38
41
needs :
39
42
- build
55
58
56
59
github-release :
57
60
name : >-
58
- Sign the Python π distribution π¦ with Sigstore
61
+ Sign the cloudpickle π₯ distribution π¦ with Sigstore
59
62
and upload them to GitHub Release
60
63
needs :
61
64
- publish-to-pypi
97
100
--repo "$GITHUB_REPOSITORY"
98
101
99
102
publish-to-testpypi :
100
- name : Publish Python π distribution π¦ to TestPyPI
103
+ name : Publish cloudpickle π₯ distribution π¦ to TestPyPI
101
104
needs :
102
105
- build
103
106
runs-on : ubuntu-latest
You canβt perform that action at this time.
0 commit comments