Skip to content

Commit

Permalink
Merge pull request #2 from argysamo/github_action
Browse files Browse the repository at this point in the history
Add github action
  • Loading branch information
argysamo authored Oct 11, 2021
2 parents ab37bb1 + c0cde91 commit 9728c15
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/upload-to-pip.yml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Upload to PIP

on:
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.9

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

0 comments on commit 9728c15

Please sign in to comment.