We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5367d4b commit 3775ac1Copy full SHA for 3775ac1
1 file changed
.github/workflows/python-publish.yml
@@ -8,19 +8,18 @@
8
9
name: Upload Python Package
10
11
-on: [push]
+on:
12
+ release:
13
+ types: [published]
14
15
permissions:
16
contents: read
17
18
jobs:
19
deploy:
20
+
21
runs-on: ubuntu-latest
- # Specifying a GitHub environment is optional, but strongly encouraged
- environment: pypi
- permissions:
22
- # IMPORTANT: this permission is mandatory for Trusted Publishing
23
- id-token: write
24
steps:
25
- uses: actions/checkout@v4
26
- name: Set up Python
@@ -35,4 +34,6 @@ jobs:
35
34
run: python -m build
36
- name: Publish package
37
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38
-
+ with:
+ user: __token__
39
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments