We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94d03ea commit fd3cb1aCopy full SHA for fd3cb1a
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,28 @@
1
+name: Publish package to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+permissions:
9
+ id-token: write
10
+ contents: read
11
12
+jobs:
13
+ build-and-publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.x'
21
+ - name: Install build dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ python -m pip install --upgrade build
25
+ - name: Build distribution
26
+ run: python -m build
27
+ - name: Publish to PyPI
28
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments