-
-
Notifications
You must be signed in to change notification settings - Fork 27
32 lines (27 loc) · 705 Bytes
/
publish_to_pypi.yml
File metadata and controls
32 lines (27 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish to PyPI
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish_to_pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Required Packages
run: |
pip install -U pip
pip install setuptools wheel twine
- name: Build and Publish
run: |
python setup.py sdist bdist_wheel
twine upload dist/*