From acc65a17ffc72de0c2cc4641f6cb8e8416a749b7 Mon Sep 17 00:00:00 2001 From: Dissectum <124477333+Dissectum@users.noreply.github.com> Date: Thu, 14 Sep 2023 20:48:11 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3583b7d..19a0f5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,8 +64,8 @@ jobs: fail-fast: false env: NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - PUBLISH_NAME: ${{ matrix.project }}-${{ needs.meta.outputs.tag }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }} - PUBLISH_PATH: ./Publish/${{ matrix.project }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}/ + PUBLISH_NAME: ${{ matrix.project }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}-${{ needs.meta.outputs.tag }} + PUBLISH_PATH: ./Publish #./Publish/${{ matrix.project }}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}/ CSPROJ_PATH: ./src/${{ matrix.project }}/${{ matrix.project }}.csproj PUBXML_PATH: ./src/${{ matrix.project }}/Properties/PublishProfiles/${{ matrix.os }}-${{ matrix.arch }}${{ matrix.suffix }}.pubxml @@ -90,14 +90,14 @@ jobs: path: ${{ env.PUBLISH_PATH }} - name: Pack - #if: ${{ needs.meta.outputs.is_release == 'true' }} + if: ${{ needs.meta.outputs.is_release == 'true' }} working-directory: ${{ env.PUBLISH_PATH }} - run: 7z a -r ../$f.zip ./* + run: 7z a -r ../${{ env.PUBLISH_NAME }}.zip ./* - uses: softprops/action-gh-release@v1 if: ${{ needs.meta.outputs.is_release == 'true' }} with: body_path: CHANGELOG.md prerelease: true - files: Publish/*.zip + files: ${{ env.PUBLISH_NAME }}.zip tag_name: ${{ needs.meta.outputs.tag }}