From f2a9440d13a86aa361bc0de5b881ef54b08f90a1 Mon Sep 17 00:00:00 2001 From: Abc Dr Date: Sat, 3 Aug 2024 02:57:25 +0800 Subject: [PATCH] 1 --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c16fc4..0c4f70c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,13 +46,17 @@ jobs: run: tar -czvf ./SPRView.Net-${{ matrix.os }}-${{ matrix.arch }}.tar.gz ./bin/Release/net8.0/publish/${{ matrix.os }}-${{ matrix.arch }} - name: Create Release Unix - if: matrix.os != 'windows' - uses: ncipollo/release-action@v1 + if: matrix.os != 'windows' && startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 with: - artifacts: ./SPRView.Net-${{ matrix.os }}-${{ matrix.arch }}.tar.gz + name: SPRView.Net-${{ github.ref }} + files: | + ./SPRView.Net-${{ matrix.os }}-${{ matrix.arch }}.tar.gz - name: Create Release Win - if: matrix.os == 'windows' - uses: ncipollo/release-action@v1 + if: matrix.os == 'windows' && startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v1 with: - artifacts: SPRView.Net-${{ matrix.os }}-${{ matrix.arch }}.zip + name: SPRView.Net-${{ github.ref }} + files: | + SPRView.Net-${{ matrix.os }}-${{ matrix.arch }}.zip