35
35
- name : Show package contents
36
36
run : python scripts/show_wheel_content.py wheelhouse
37
37
- name : Upload wheels
38
- uses : actions/upload-artifact@v3
38
+ uses : actions/upload-artifact@v4
39
39
with :
40
40
name : wheels-windows
41
41
path : ./wheelhouse/*.whl
58
58
- name : Show package contents
59
59
run : python scripts/show_wheel_content.py wheelhouse
60
60
- name : Upload wheels
61
- uses : actions/upload-artifact@v3
61
+ uses : actions/upload-artifact@v4
62
62
with :
63
63
name : wheels-macos
64
64
path : ./wheelhouse/*.whl
81
81
- name : Show package contents
82
82
run : python scripts/show_wheel_content.py wheelhouse
83
83
- name : Upload wheels
84
- uses : actions/upload-artifact@v3
84
+ uses : actions/upload-artifact@v4
85
85
with :
86
86
name : wheels-macos-x86
87
87
path : ./wheelhouse/*.whl
@@ -104,7 +104,7 @@ jobs:
104
104
- name : Show package contents
105
105
run : python scripts/show_wheel_content.py wheelhouse
106
106
- name : Upload wheels
107
- uses : actions/upload-artifact@v3
107
+ uses : actions/upload-artifact@v4
108
108
with :
109
109
name : wheels-linux
110
110
path : ./wheelhouse/*.whl
@@ -115,12 +115,14 @@ jobs:
115
115
environment :
116
116
name : pypi
117
117
url : https://pypi.org/p/mlc-python
118
+ permissions :
119
+ id-token : write
118
120
steps :
119
121
- uses : actions/setup-python@v5
120
122
with :
121
123
python-version : ${{ env.MLC_PYTHON_VERSION }}
122
124
- name : Download all artifacts
123
- uses : actions/download-artifact@v3
125
+ uses : actions/download-artifact@v4
124
126
with :
125
127
path : ./wheelhouse
126
128
- name : Prepare distribution files
@@ -134,4 +136,3 @@ jobs:
134
136
uses : pypa/gh-action-pypi-publish@release/v1
135
137
with :
136
138
packages-dir : dist/
137
- password : ${{ secrets.MLC_PYPI_API_TOKEN }}
0 commit comments