Skip to content

Commit

Permalink
remove release drafter action, add action-gh-release for file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmncs committed Apr 29, 2024
1 parent 40dc4f3 commit 652299c
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,6 @@ jobs:
with:
name: wheels
path: dist

update_release_draft:
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Release drafter
id: release_drafter
uses: release-drafter/release-drafter@v5
with:
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
upload_url: ${{ steps.release_drafter.outputs.upload_url }}

release:
name: Release
Expand All @@ -167,16 +151,15 @@ jobs:
- name: Zip wheels into wheelhouse
run: zip -r wheelhouse.zip . -i *.whl
working-directory: ${{ steps.download.outputs.download-path }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
upload_url: ${{ needs.update_release_draft.outputs.upload_url }}
asset_path: wheelhouse.zip
asset_name: wheelhouse.zip
asset_content_type: application/zip
generate_release_notes: true
files: |
wheelhouse.zip
LICENSE
NOTICE
README.md
- uses: actions/setup-python@v2
with:
python-version: 3.9
Expand Down

0 comments on commit 652299c

Please sign in to comment.