From c97bde9543568f320110472605805479f253f914 Mon Sep 17 00:00:00 2001 From: Ahnaf Tahmid Chowdhury Date: Mon, 14 Aug 2023 12:32:30 +0600 Subject: [PATCH] Create a release method changed --- .github/workflows/publish_release.yml | 28 +++++---------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 5bf85e1..3466180 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -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 \ No newline at end of file + run: | + gh release create ${{ github.ref }} \ + -t ${{ github.ref }} -n ${{ github.ref }} \ + -F CHANGELOG \ + ./dist/*