From df7087f3ca161020772d5b305e6b928b0d01d2c9 Mon Sep 17 00:00:00 2001 From: Yangyang Li Date: Tue, 24 Oct 2023 23:57:03 -0500 Subject: [PATCH] chore: Update release workflow configuration --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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