File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 45
45
if : github.repository == 'tensorchord/envd' && startsWith(github.ref, 'refs/tags/v')
46
46
runs-on : ${{ matrix.os }}
47
47
timeout-minutes : 20
48
+ permissions :
49
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
48
50
strategy :
49
51
matrix :
50
52
os : [macos-13, ubuntu-22.04]
@@ -83,14 +85,12 @@ jobs:
83
85
python -m pip install wheel
84
86
python setup.py sdist
85
87
mv dist/*.tar.gz wheelhouse/
86
- - name : Upload to PyPI
87
- env :
88
- TWINE_USERNAME : __token__
89
- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
90
- run : |
91
- python -m pip install --upgrade pip
92
- python -m pip install twine
93
- python -m twine upload wheelhouse/*
88
+ - name : Publish package distributions to PyPI
89
+ uses : pypa/gh-action-pypi-publish@release/v1
90
+ with :
91
+ packages-dir : wheelhouse/
92
+ skip-existing : true
93
+ verbose : true
94
94
image_publish :
95
95
name : Build & push images
96
96
# only trigger on main repo when tag starts with v
File renamed without changes.
You can’t perform that action at this time.
0 commit comments