Skip to content

Commit 3525768

Browse files
committed
Merge branch 'main' into develop
2 parents 99a8e06 + c1a4f9e commit 3525768

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/python-deploy_to_pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
deploy:
99
name: Build and publish to PyPI
1010
runs-on: ubuntu-22.04
11+
environment: pypi
12+
permissions:
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@v4
1316
with:
@@ -22,6 +25,3 @@ jobs:
2225
run: python -m build -n --sdist --wheel --outdir dist/ .
2326
- name: Publish distribution to Test PyPI
2427
uses: pypa/gh-action-pypi-publish@release/v1
25-
with:
26-
user: __token__
27-
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-test_and_deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
deploy:
4545
name: Build and publish to TestPyPI
4646
runs-on: ubuntu-22.04
47+
environment: pypi
48+
permissions:
49+
id-token: write
4750
if: github.ref == 'refs/heads/main'
4851
steps:
4952
- uses: actions/checkout@v4
@@ -60,6 +63,4 @@ jobs:
6063
- name: Publish distribution to Test PyPI
6164
uses: pypa/gh-action-pypi-publish@release/v1
6265
with:
63-
user: __token__
64-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
6566
repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)