Skip to content

Commit 9b0956e

Browse files
authored
Merge pull request #110 from fastlabel/develop
Merge to main
2 parents 15f492a + e86c794 commit 9b0956e

File tree

7 files changed

+1360
-60
lines changed

7 files changed

+1360
-60
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Upload package to PyPI
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
build-n-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.7'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel
24+
25+
- name: Build
26+
run: |
27+
python setup.py sdist
28+
python setup.py bdist_wheel
29+
30+
- name: Check
31+
run: |
32+
ls ./dist
33+
34+
- name: Publish a Python distribution to PyPI
35+
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
36+
uses: pypa/gh-action-pypi-publish@master
37+
with:
38+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)