From 791e319fa42007f4edf4a7820f331af46880a0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Desu=C3=B3=20N?= Date: Fri, 11 Oct 2024 13:11:19 -0300 Subject: [PATCH] ci: restore workflow --- .github/workflows/release.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dec83e..df1ec21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,18 +80,20 @@ jobs: repository-url: https://test.pypi.org/legacy/ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - # - name: Test install from TestPyPI - # run: | - # pip install \ - # --index-url https://test.pypi.org/simple/ \ - # --extra-index-url https://pypi.org/simple \ - # banquo + - name: Test install from TestPyPI + if: steps.release.outputs.released == 'true' + run: | + pip install \ + --index-url https://test.pypi.org/simple/ \ + --extra-index-url https://pypi.org/simple \ + banquo - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - # if: steps.release.outputs.released == 'true' + if: steps.release.outputs.released == 'true' with: password: ${{ secrets.PYPI_API_TOKEN }} + - name: Publish package distributions to GitHub Releases uses: python-semantic-release/upload-to-gh-release@main if: steps.release.outputs.released == 'true'