From 25b3cf1ca23a1c3a311c49cc17691455f8bcfc62 Mon Sep 17 00:00:00 2001 From: Thales Bertaglia Date: Wed, 19 Aug 2020 16:06:05 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9de82d0..01ca168 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Upload Python Package to PyPI +name: Release on: release: @@ -13,10 +13,16 @@ jobs: uses: actions/setup-python@v2 with: python-version: '3.x' - - - name: Build and publish - uses: d1618033/gh-action-python-publish-using-poetry@master + + - name: Build package + run: | + poetry build --ansi + + - name: Publish package on PyPI + uses: pypa/gh-action-pypi-publish@v1.3.1 with: - pypi_username: ${{ secrets.PYPI_USERNAME }} - pypi_password: ${{ secrets.PYPI_PASSWORD }} + user: ${{ secrets.PYPI_USERNAME }} + password: ${{ secrets.PYPI_PASSWORD }} + +