Skip to content

Commit 253fc72

Browse files
committed
(add) github action workflow to release pypi
1 parent 6e35a04 commit 253fc72

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# https://github.com/LeadingEDJE/stackmanager/blob/master/.github/workflows/release.yml
2+
3+
name: Release to PyPI
4+
5+
on:
6+
release:
7+
types: [released]
8+
9+
jobs:
10+
release:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python 3.8
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
20+
- name: Install Tools
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Package and Upload
25+
env:
26+
COMMIT_VERSION: ${{ github.event.release.tag_name }}
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

0 commit comments

Comments
 (0)