From 5e62ae6297f645409455b704f72c923a108f94d9 Mon Sep 17 00:00:00 2001 From: Karik Isichei Date: Wed, 17 Mar 2021 16:40:22 +0000 Subject: [PATCH] Create poetry-pypi-release.yml --- .github/workflows/poetry-pypi-release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/poetry-pypi-release.yml diff --git a/.github/workflows/poetry-pypi-release.yml b/.github/workflows/poetry-pypi-release.yml new file mode 100644 index 0000000..37ed50d --- /dev/null +++ b/.github/workflows/poetry-pypi-release.yml @@ -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