We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 362fa59 commit af6c30eCopy full SHA for af6c30e
.github/workflows/pypi.yml
@@ -10,15 +10,19 @@ on:
10
jobs:
11
deploy:
12
runs-on: ubuntu-latest
13
+ # Specifying a GitHub environment is optional, but strongly encouraged
14
+ environment: release
15
+ permissions:
16
+ # IMPORTANT: this permission is mandatory for trusted publishing
17
+ id-token: write
18
steps:
19
- uses: actions/checkout@v3
20
21
- name: Install poetry
22
run: pip install poetry
23
- - name: Publish to pypi
- env:
- POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
- POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
- PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
24
- run: poetry publish --build
+ - name: Build dist
25
+ run: poetry build
26
+
27
+ - name: Publish package distributions to PyPI
28
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments