We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f9baf commit 309a51dCopy full SHA for 309a51d
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,27 @@
1
+name: Publish Python Package to PyPi
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ deploy-to-pypi:
9
+ runs-on: ubuntu-latest
10
+ environment: release
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: '3.11'
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install -U pip
22
+ python -m pip install setuptools wheel build
23
+ - name: Build package
24
25
+ python -m build
26
+ - name: Publish to PyPi
27
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments