@@ -49,69 +49,26 @@ jobs:
49
49
- name : Publish distribution 📦 to PyPI
50
50
uses : pypa/gh-action-pypi-publish@release/v1
51
51
52
- github-release :
53
- name : >-
54
- Sign the Python 🐍 distribution 📦 with Sigstore
55
- and upload them to GitHub Release
56
- needs :
57
- - publish-to-pypi
58
- runs-on : ubuntu-latest
59
-
60
- permissions :
61
- contents : write # IMPORTANT: mandatory for making GitHub Releases
62
- id-token : write # IMPORTANT: mandatory for sigstore
63
-
64
- steps :
65
- - name : Download all the dists
66
- uses : actions/download-artifact@v4
67
- with :
68
- name : python-package-distributions
69
- path : dist/
70
- - name : Sign the dists with Sigstore
71
-
72
- with :
73
- inputs : >-
74
- ./dist/*.tar.gz
75
- ./dist/*.whl
76
- - name : Create GitHub Release
77
- env :
78
- GITHUB_TOKEN : ${{ github.token }}
79
- run : >-
80
- gh release create
81
- '${{ github.ref_name }}'
82
- --repo '${{ github.repository }}'
83
- --notes ""
84
- - name : Upload artifact signatures to GitHub Release
85
- env :
86
- GITHUB_TOKEN : ${{ github.token }}
87
- # Upload to GitHub Release using the `gh` CLI.
88
- # `dist/` contains the built packages, and the
89
- # sigstore-produced signatures and certificates.
90
- run : >-
91
- gh release upload
92
- '${{ github.ref_name }}' dist/**
93
- --repo '${{ github.repository }}'
94
-
95
- publish-to-testpypi :
96
- name : Publish Python 🐍 distribution 📦 to TestPyPI
97
- needs :
98
- - build
99
- runs-on : ubuntu-latest
100
-
101
- environment :
102
- name : testpypi
103
- url : https://test.pypi.org/p/<package-name>
104
-
105
- permissions :
106
- id-token : write # IMPORTANT: mandatory for trusted publishing
107
-
108
- steps :
109
- - name : Download all the dists
110
- uses : actions/download-artifact@v4
111
- with :
112
- name : python-package-distributions
113
- path : dist/
114
- - name : Publish distribution 📦 to TestPyPI
115
- uses : pypa/gh-action-pypi-publish@release/v1
116
- with :
117
- repository-url : https://test.pypi.org/legacy/
52
+ # publish-to-testpypi:
53
+ # name: Publish Python 🐍 distribution 📦 to TestPyPI
54
+ # needs:
55
+ # - build
56
+ # runs-on: ubuntu-latest
57
+ #
58
+ # environment:
59
+ # name: testpypi
60
+ # url: https://test.pypi.org/p/<package-name>
61
+ #
62
+ # permissions:
63
+ # id-token: write # IMPORTANT: mandatory for trusted publishing
64
+ #
65
+ # steps:
66
+ # - name: Download all the dists
67
+ # uses: actions/download-artifact@v4
68
+ # with:
69
+ # name: python-package-distributions
70
+ # path: dist/
71
+ # - name: Publish distribution 📦 to TestPyPI
72
+ # uses: pypa/gh-action-pypi-publish@release/v1
73
+ # with:
74
+ # repository-url: https://test.pypi.org/legacy/
0 commit comments