Skip to content

Commit 3e1c5f3

Browse files
authored
Merge pull request #83 from Daisuke134/upload-package
Actions workflow for building and uploading package to PyPi.
2 parents 7bc1cf2 + e26f6b1 commit 3e1c5f3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: '3.8'
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
24+
- name: Build and check package
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
twine check dist/*
28+
29+
- name: Upload to PyPi
30+
uses: pypa/[email protected]
31+
with:
32+
user: __token__
33+
password: ${{ secrets.PYPI_API_TOKEN }}
34+

0 commit comments

Comments
 (0)