We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f58f9d commit 552fa66Copy full SHA for 552fa66
.github/workflows/publish.yml
@@ -10,17 +10,27 @@ jobs:
10
runs-on: ubuntu-latest
11
environment: pypi
12
permissions:
13
+ contents: read
14
id-token: write
15
steps:
16
- uses: actions/checkout@v2
17
+
18
- name: Set up Python
19
uses: actions/setup-python@v2
20
with:
21
python-version: '3.10'
22
23
- name: Install dependencies
24
run: |
25
pip install poetry
- - name: Build and publish
26
27
+ - name: Build
28
+ run: poetry build
29
30
+ - name: Mint pypi publisher token
31
+ id: pypi-token
32
+ uses: tsch/[email protected]
33
34
+ - name Publish
35
- poetry build
- poetry publish
36
+ poetry publish -u __token__ -p '${{ steps.pypi-token.outputs.api-token }}'
0 commit comments