actions/create-release is unmaintained, and doesn't create proper release notes (#2098) [skip ci]
This commit is contained in:
13
.github/workflows/pypi.yml
vendored
13
.github/workflows/pypi.yml
vendored
@@ -13,19 +13,10 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Get the tag version
|
- name: Create release
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: gh release create "$GITHUB_REF_NAME" # GITHUB_REF_NAME is the tag name in `on.push.tags` workflows
|
||||||
tag_name: ${{ steps.extract_branch.outputs.branch }}
|
|
||||||
release_name: ${{ steps.extract_branch.outputs.branch }}
|
|
||||||
pypi-publish:
|
pypi-publish:
|
||||||
name: Upload release to PyPI
|
name: Upload release to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user