File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- name : publish python package to test- pypi
1
+ name : publish python package to pypi
2
2
on :
3
3
release :
4
4
types : [published]
5
5
6
6
jobs :
7
7
build-n-publish :
8
- name : Build project and publish to TestPyPI
9
- runs-on : ubuntu-22.04
8
+ name : Build project and publish to PyPI
9
+ runs-on : ubuntu-latest
10
+ environment : release
11
+ permissions :
12
+ # Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
13
+ id-token : write
14
+ # Used to attach signing artifacts to the published release.
15
+ contents : write
10
16
strategy :
11
17
matrix :
12
18
python : [ 3.10.12 ]
24
30
- name : Publish a Python distribution to PyPI
25
31
uses : pypa/gh-action-pypi-publish@release/v1
26
32
with :
27
- user : __token__
28
- password : ${{ secrets.LABS_PYPI_TOKEN }}
29
33
packages_dir : python/dist/
You can’t perform that action at this time.
0 commit comments