We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d3dfb0 commit 647f75dCopy full SHA for 647f75d
2 files changed
.github/workflows/build-publish-pypi.yml
@@ -0,0 +1,35 @@
1
+name: PyPI Builder and Releaser
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
8
+jobs:
9
+ release:
10
+ name: Publishes release candidate to PyPI
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
+ with:
17
+ fetch-depth: 0
18
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v4
21
22
+ python-version: "3.8"
23
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install setuptools wheel twine
28
29
+ - name: Build and publish package
30
+ env:
31
+ TWINE_USERNAME: __token__
32
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
33
34
+ python setup.py sdist bdist_wheel
35
+ twine upload dist/*
.github/workflows/publish.yml
0 commit comments