diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a7bad9e..9ad9e400 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -256,6 +256,20 @@ jobs: skip_existing: true packages_dir: artifact/ + - name: Publish the release notes + uses: release-drafter/release-drafter@v5.25.0 + with: + publish: ${{ needs.release.outputs.tag != '' }} + tag: ${{ needs.release.outputs.tag }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + upload_to_test_pypi: + needs: ["release"] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + - name: Publish package on TestPyPI if: "! needs.release.outputs.tag" uses: pypa/gh-action-pypi-publish@v1.8.10