Skip to content

Commit 72d19db

Browse files
authored
infra: Use PyPI environment for release (#27)
1 parent a486ce4 commit 72d19db

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66

77
jobs:
88
build-and-publish:
9-
name: Build and publish distribution to PyPi
9+
name: Build and publish distribution to PyPI
1010
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/amazon-braket-build-tools
14+
permissions:
15+
id-token: write
1116
steps:
1217
- uses: actions/checkout@v5
1318
- name: Set up Python
@@ -23,6 +28,4 @@ jobs:
2328
- name: Build a binary wheel and a source tarball
2429
run: python setup.py sdist bdist_wheel
2530
- name: Publish distribution to PyPI
26-
uses: pypa/gh-action-pypi-publish@master
27-
with:
28-
password: ${{ secrets.pypi_token }}
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)