From e4c95bdd18e6dbaddd270bdea9cb4f75da56e967 Mon Sep 17 00:00:00 2001 From: tsuza Date: Wed, 6 Nov 2024 21:52:55 +0100 Subject: [PATCH] fix --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ddefd1..276e9b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -162,9 +162,19 @@ jobs: echo "ARTIFACT_NAME=mannager-installer.msi" >> "$GITHUB_ENV" - name: Upload asset + if: matrix.target.artifact == 'linux' uses: actions/upload-release-asset@v1 with: upload_url: ${{ needs.create-release.outputs.upload_url }} - asset_path: ./${{ matrix.target.os }}/${{ env.ARTIFACT_NAME }} + asset_path: ${{ env.ARTIFACT_NAME }} asset_name: ${{ env.ARTIFACT_NAME }} + asset_content_type: ${{ matrix.target.asset_type }} + + - name: Upload asset + if: matrix.target.artifact == 'windows' + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ needs.create-release.outputs.upload_url }} + asset_path: ${{ env.ARTIFACT_NAME }} + asset_name: ./${{ matrix.target.os }}/${{ env.ARTIFACT_NAME }} asset_content_type: ${{ matrix.target.asset_type }} \ No newline at end of file