Skip to content

Commit

Permalink
Merge pull request #4 from JanPalasek/issue_3/pypi_publish
Browse files Browse the repository at this point in the history
Issue #3 - added release pipeline.
  • Loading branch information
JanPalasek authored Feb 19, 2022
2 parents f64ab65 + 4a8b56a commit 94e83cf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 94e83cf

Please sign in to comment.