Skip to content

Commit

Permalink
added GitHub worflow to automatically release on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimoNigro committed Nov 16, 2021
1 parent 0113497 commit 47f7984
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pip-upload.yml
@@ -0,0 +1,32 @@
name: Upload to PIP

on:
# trigger the workflow when a release is created
release:
types: [created]
workflow_dispatch:

jobs:
upload:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.8

- name: "Installs dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: "Builds and uploads to PyPI"
run: |
python setup.py sdist bdist_wheel
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}

0 comments on commit 47f7984

Please sign in to comment.