Skip to content

Commit 411e850

Browse files
committed
Setup GitHub workflow to release to pypi
1 parent c025925 commit 411e850

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: pypi-publish
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build twine
23+
- name: Create packages
24+
run: python -m build
25+
- name: Run twine check
26+
run: twine check dist/*
27+
- name: Upload to pypi
28+
env:
29+
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
30+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
31+
run: twine upload dist/*.whl

netfuse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Place holder package"""
22

3-
version = "0.0.2a"
3+
version = "0.0.1"

0 commit comments

Comments
 (0)