Skip to content

Commit 13ce607

Browse files
Update CI/CD
1 parent af60e1d commit 13ce607

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ jobs:
99
build-and-publish:
1010
name: Build and publish to PyPI
1111
runs-on: ubuntu-latest
12+
environment: release
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
1216

1317
steps:
14-
- uses: actions/checkout@master
18+
- name: Checkout source code
19+
uses: actions/checkout@v4
1520

1621
- name: Set up Python
1722
uses: actions/setup-python@v4
@@ -28,10 +33,8 @@ jobs:
2833
hatch build
2934
3035
- name: Publish distribution to PyPI
31-
uses: pypa/gh-action-pypi-publish@v1.4.2
36+
uses: pypa/gh-action-pypi-publish@release/v1
3237
with:
33-
user: __token__
34-
password: ${{ secrets.PYPI_API_TOKEN }}
3538
packages_dir: dist
3639
verbose: true
3740

0 commit comments

Comments
 (0)