We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d225a9b commit ec9d08cCopy full SHA for ec9d08c
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -7,6 +7,8 @@ on:
7
jobs:
8
deploy:
9
runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
12
steps:
13
- uses: actions/checkout@v3
14
- name: Set up Python
@@ -16,11 +18,9 @@ jobs:
16
18
- name: Install dependencies
17
19
run: |
20
python -m pip install --upgrade pip
- pip install build twine
- - name: Build and publish
21
- env:
22
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24
- run: |
25
- python -m build
26
- twine upload dist/*
+ pip install build
+ - name: Build package
+ run: python -m build
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@release/v1
+ # No credentials needed for trusted publishing
0 commit comments