Skip to content

Commit fcab346

Browse files
committed
use token
1 parent 281c642 commit fcab346

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ jobs:
8585
needs:
8686
- build
8787
runs-on: ubuntu-latest
88-
environment:
89-
name: pypi
90-
url: https://pypi.org/p/nyancad
91-
permissions:
92-
id-token: write # IMPORTANT: mandatory for trusted publishing
9388
steps:
9489
- name: Download nyancad distributions
9590
uses: actions/download-artifact@v4
@@ -98,18 +93,15 @@ jobs:
9893
path: dist/
9994
- name: Publish nyancad distribution 📦 to PyPI
10095
uses: pypa/gh-action-pypi-publish@release/v1
96+
with:
97+
password: ${{ secrets.PYPI_API_TOKEN }}
10198

10299
publish-nyancad-server-to-pypi:
103100
name: Publish nyancad-server 🐍 distribution 📦 to PyPI
104101
if: startsWith(github.ref, 'refs/tags/')
105102
needs:
106103
- build
107104
runs-on: ubuntu-latest
108-
environment:
109-
name: pypi-server
110-
url: https://pypi.org/p/nyancad-server
111-
permissions:
112-
id-token: write # IMPORTANT: mandatory for trusted publishing
113105
steps:
114106
- name: Download nyancad-server distributions
115107
uses: actions/download-artifact@v4
@@ -118,3 +110,5 @@ jobs:
118110
path: dist/
119111
- name: Publish nyancad-server distribution 📦 to PyPI
120112
uses: pypa/gh-action-pypi-publish@release/v1
113+
with:
114+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)