From 6a6fb8bbf325c60ba3a5ff304826bc4829fe8d08 Mon Sep 17 00:00:00 2001 From: zhuzhuxia Date: Wed, 21 Aug 2024 12:16:16 +0800 Subject: [PATCH] chore: try to release --- .github/workflows/build.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6c5e60..e7b1f52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,25 +45,19 @@ jobs: id: get_tag_name run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - tag_name: ${{ env.TAG_NAME }} - release_name: Release ${{ env.TAG_NAME }} - body: Release ${{ env.TAG_NAME }} - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./sink-tool.zip - asset_name: sink-tool.zip - asset_content_type: application/zip + files: sink-tool.zip + + # - name: Upload Release Asset + # id: upload-release-asset + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./sink-tool.zip + # asset_name: sink-tool.zip + # asset_content_type: application/zip