We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f06b48e commit b87e9e2Copy full SHA for b87e9e2
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - '*'
7
8
+jobs:
9
+ publish:
10
+ name: Build and publish to PyPI
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: "3.11"
21
22
+ - name: Install build dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install build twine
26
27
+ - name: Build package
28
+ run: python -m build
29
30
+ - name: Check distribution
31
+ run: twine check dist/*
32
33
+ - name: Publish to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
35
36
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments