We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d48b0c commit 70b146aCopy full SHA for 70b146a
.github/workflows/publish.yml
@@ -0,0 +1,33 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
9
+permissions:
10
+ contents: read
11
12
+jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ environment: release
16
+ permissions:
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.12"
24
+ cache: pip
25
+ cache-dependency-path: pyproject.toml
26
+ - name: Install dependencies
27
+ run: |
28
+ pip install setuptools wheel build
29
+ - name: Build
30
31
+ python -m build
32
+ - name: Publish
33
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments