From 94fc223f6cc65f182f24c61d498095cfb5568158 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 21 Nov 2024 14:32:41 -0500 Subject: [PATCH] actions/create-release is unmaintained, and doesn't create proper release notes (#2098) [skip ci] --- .github/workflows/pypi.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4816acaef0..752ffefdfe 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -13,19 +13,10 @@ jobs: permissions: contents: write steps: - - name: Get the tag version - id: extract_branch - run: echo ::set-output name=branch::${GITHUB_REF#refs/tags/} - shell: bash - - - name: Create Release - id: create_release - uses: actions/create-release@v1 + - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.extract_branch.outputs.branch }} - release_name: ${{ steps.extract_branch.outputs.branch }} + run: gh release create "$GITHUB_REF_NAME" # GITHUB_REF_NAME is the tag name in `on.push.tags` workflows pypi-publish: name: Upload release to PyPI runs-on: ubuntu-latest