diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..150ce68 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +name: pypi-publish + +on: + release: + types: [ published ] + workflow_dispatch: + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build twine + - name: Create packages + run: python -m build + - name: Run twine check + run: twine check dist/* + - name: Upload to pypi + env: + TWINE_USERNAME: ${{ secrets.PYPI_USER }} + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: twine upload dist/*.whl diff --git a/netfuse/__init__.py b/netfuse/__init__.py index 666cf02..a272106 100644 --- a/netfuse/__init__.py +++ b/netfuse/__init__.py @@ -1,3 +1,3 @@ """Place holder package""" -version = "0.0.2a" +version = "0.0.1"