-
-
Notifications
You must be signed in to change notification settings - Fork 21
28 lines (26 loc) · 712 Bytes
/
python-publish.yml
File metadata and controls
28 lines (26 loc) · 712 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
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
name: Upload to PyPi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install build and publish dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build --sdist --no-isolation
twine upload dist/*