Skip to content

Commit a939cdd

Browse files
Update release-package.yml
1 parent e2ce10d commit a939cdd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-package.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ jobs:
9898
needs:
9999
- test
100100
runs-on: ubuntu-latest
101-
environment: PyPI
101+
environment:
102+
name: pypi
103+
url: https://pypi.org/p/visualime
104+
permissions:
105+
id-token: write
102106
steps:
103107
- name: Download distribution
104108
uses: actions/download-artifact@v3
@@ -108,16 +112,12 @@ jobs:
108112
- name: Publish distribution 📦 to Test PyPI
109113
uses: pypa/gh-action-pypi-publish@release/v1
110114
with:
111-
user: __token__
112-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
113115
repository_url: https://test.pypi.org/legacy/
114116
packages_dir: .
115117
verbose: true
116118

117119
- name: Publish distribution 📦 to PyPI
118120
uses: pypa/gh-action-pypi-publish@release/v1
119121
with:
120-
user: __token__
121-
password: ${{ secrets.PYPI_API_TOKEN }}
122122
packages_dir: .
123123
verbose: true

0 commit comments

Comments
 (0)