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 f03ffb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 44 deletions.
19 changes: 0 additions & 19 deletions .github/release-drafter.yml

This file was deleted.

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 f03ffb0

Please sign in to comment.