Skip to content

Commit

Permalink
Merge pull request #3 from emcpow2/upload-package-on-pypi
Browse files Browse the repository at this point in the history
👷 add publishing to PyPI
  • Loading branch information
ediskandarov committed Mar 2, 2021
2 parents c844ef2 + 369c3f1 commit d176553
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install poetry
run: |
curl -sSL -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py -y
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Publish
if: success()
run: poetry publish --build

0 comments on commit d176553

Please sign in to comment.