Skip to content

Commit

Permalink
add github action to make pypi release when a gh release is made
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Sep 26, 2022
1 parent 0e75b30 commit 5fbc61b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Make PyPI 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: |
python3 -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
run: |
python3 setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 5fbc61b

Please sign in to comment.