78
78
name : Upload to PyPI test
79
79
needs : [build_wheels_win_32, build_wheels_win_64]
80
80
runs-on : ubuntu-latest
81
+ environment :
82
+ name : pypi
83
+ url : https://test.pypi.org/project/delphivcl
84
+ permissions :
85
+ id-token : write
81
86
# upload to PyPI test only for pushes to 'deploy-pypi-test'
82
87
if : github.event_name == 'push' && github.ref == 'refs/heads/deploy-pypi-test'
83
88
steps :
@@ -87,16 +92,19 @@ jobs:
87
92
path : dist
88
93
89
94
- name : Publish package to TestPyPI
90
- uses : pypa/gh-action-pypi-publish@master
95
+ uses : pypa/gh-action-pypi-publish@release/v1
91
96
with :
92
- user : ${{ secrets.test_pypi_username }}
93
- password : ${{ secrets.test_pypi_password }}
94
- repository_url : https://test.pypi.org/legacy/
97
+ repository_url : https://test.pypi.org/legacy/
95
98
96
99
upload_pypi :
97
100
name : Upload to PyPI
98
101
needs : [build_wheels_win_32, build_wheels_win_64]
99
102
runs-on : ubuntu-latest
103
+ environment :
104
+ name : pypi
105
+ url : https://pypi.org/project/delphivcl/
106
+ permissions :
107
+ id-token : write
100
108
# upload to PyPI only for pushes to 'deploy-pypi'
101
109
if : github.event_name == 'push' && github.ref == 'refs/heads/deploy-pypi'
102
110
steps :
@@ -106,7 +114,4 @@ jobs:
106
114
path : dist
107
115
108
116
- name : Publish package to PyPI
109
- uses : pypa/gh-action-pypi-publish@master
110
- with :
111
- user : ${{ secrets.pypi_username }}
112
- password : ${{ secrets.pypi_password }}
117
+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments