Skip to content

Commit

Permalink
Create poetry-pypi-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Karik Isichei authored Mar 17, 2021
1 parent 5dba715 commit 5e62ae6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/poetry-pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Package on PyPi
on:
push:
tags:
- 'v*.*.*'
jobs:
poetry-publish:
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 https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Publish to Pypi
env:
TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish --build -u __token__ -p $TOKEN

0 comments on commit 5e62ae6

Please sign in to comment.