From 81e3ec34e88b33b65d9aed1a580d1449d02d8c5b Mon Sep 17 00:00:00 2001 From: ArthurZheng <869705086@qq.com> Date: Thu, 11 Jul 2024 19:34:01 +0800 Subject: [PATCH] fix --- .github/workflows/release.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aaadc94..d4c4ab7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,14 +121,11 @@ jobs: & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /dVersion="${{ steps.get-version.outputs.VERSION }}" "./buildResources/setup.iss" - name: Upload to Release - uses: actions/upload-release-asset@v1 + uses: xresloader/upload-to-github-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ./dist/OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.exe - asset_name: ./OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.exe - asset_content_type: application/octet-stream + file: "./dist/OpenBlock-ExternalResources*" build-mac: needs: create-release @@ -146,14 +143,11 @@ jobs: run: ./buildResources/build-pkg.sh VERSION="${{ steps.get-version.outputs.VERSION }}" - name: Upload to Release - uses: actions/upload-release-asset@v1 + uses: xresloader/upload-to-github-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ./dist/OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.pkg - asset_name: ./OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.pkg - asset_content_type: application/octet-stream + file: "./dist/OpenBlock-ExternalResources*" build-linux: needs: create-release @@ -171,11 +165,8 @@ jobs: run: ./buildResources/build-deb.sh -v"${{ steps.get-version.outputs.VERSION }}" - name: Upload to Release - uses: actions/upload-release-asset@v1 + uses: xresloader/upload-to-github-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ./dist/OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.deb - asset_name: ./OpenBlock-ExternalResources-v${{ steps.get-version.outputs.VERSION }}.deb - asset_content_type: application/octet-stream + file: "./dist/OpenBlock-ExternalResources*"