We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c9948a commit 542f391Copy full SHA for 542f391
.github/workflows/publish-to-pypi.yml
@@ -5,8 +5,12 @@ on:
5
types: [published]
6
7
jobs:
8
- deploy:
+ pypi-publish:
9
+ name: upload release to PyPI
10
runs-on: ubuntu-latest
11
+ environment: release
12
+ permissions:
13
+ id-token: write
14
steps:
15
- uses: actions/checkout@v2
16
- name: Set up Python
@@ -17,9 +21,8 @@ jobs:
17
21
run: |
18
22
python -m pip install --upgrade pip
19
23
pip install poetry
20
- - name: Build and publish
- env:
- PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
24
+ - name: Build
25
26
poetry build
- poetry publish --username __token__ --password $PYPI_API_TOKEN
27
+ - name: Publish package distributions to PyPI
28
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments