Skip to content

Commit

Permalink
replace deprecated actions/create-release with ncipollo/release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Jul 31, 2023
1 parent 26642dd commit 968c85b
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,6 @@ jobs:
echo "Tag does not contain pre-release suffix"
echo "IS_PRERELEASE=false" >> "$GITHUB_ENV"
fi
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: "${{ runner.temp }}/release_notes.md"
draft: false
prerelease: ${{ env.IS_PRERELEASE }}
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand All @@ -120,3 +108,10 @@ jobs:
fi
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Create GitHub release
id: create_release
uses: ncipollo/release-action@v1
with:
bodyFile: "${{ runner.temp }}/release_notes.md"
draft: false
prerelease: ${{ env.IS_PRERELEASE }}

0 comments on commit 968c85b

Please sign in to comment.