Skip to content

Commit

Permalink
Create a release method changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed Aug 14, 2023
1 parent 166dd49 commit c97bde9
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,10 @@ jobs:
- name: Create a release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload release artifact
id: upload-artifact
uses: actions/upload-artifact@v3
with:
name: release-artifact
path: dist/*

- name: Attach artifact to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.upload-artifact.outputs.artifact_paths }}
asset_name: pip-release
asset_content_type: application/zip
run: |
gh release create ${{ github.ref }} \
-t ${{ github.ref }} -n ${{ github.ref }} \
-F CHANGELOG \
./dist/*

0 comments on commit c97bde9

Please sign in to comment.