diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 25a97201..64a73d72 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -180,22 +180,21 @@ jobs: with: name: wheel path: dist/ - - run: ls -R - # - name: Publish the release - # uses: softprops/action-gh-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # body: ${{ steps.changelog_entry.outputs.log_entry }} - # files: | - # dist/* - - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master + - name: Publish the release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - password: ${{ secrets.test_pypi_password }} - repository_url: https://test.pypi.org/legacy/ - # - name: Publish distribution 📦 to PyPI - # if: startsWith(github.ref, 'refs/tags') + body: ${{ steps.changelog_entry.outputs.log_entry }} + files: | + dist/* + # - name: Publish distribution 📦 to Test PyPI # uses: pypa/gh-action-pypi-publish@master # with: - # password: ${{ secrets.pypi_password }} + # password: ${{ secrets.test_pypi_password }} + # repository_url: https://test.pypi.org/legacy/ + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.pypi_password }}