From 775278ade2809248b758946eb4e731ff5cd9322e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 31 Jul 2020 00:56:46 +0200 Subject: [PATCH] Create publish to pypi workflow --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..c1e45f60 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to PyPI + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + - name: Setup Python and Poetry + uses: abatilo/actions-poetry@v1.5.0 + with: + python_version: 3.8 + poetry_version: 1.0 + args: install + - name: Build + run: poetry build + - name: Publish + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_USERNAME }} + run: poetry publish