From 80e21db100bc39245ea2a534de30b358f213fefb Mon Sep 17 00:00:00 2001 From: mikumifa <1055069518@qq.com> Date: Fri, 6 Sep 2024 16:57:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=9A=E7=B3=BB=E7=BB=9F=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66429d1..cf8c2be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,19 @@ on: jobs: build: name: Build Executables - runs-on: ${{ matrix.config.os }} + runs-on: ${{ matrix.config.os.name }} strategy: matrix: config: - - os: ubuntu-latest - - os: macos-latest - - os: windows-latest + - os: + name: ubuntu-latest + filename: Linux + - os: + name: macos-latest + filename: MacOS + - os: + name: windows-latest + filename: Windows steps: - name: Checkout source uses: actions/checkout@v2 @@ -45,10 +51,10 @@ jobs: with: files: dist/ recursive: false - dest: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os }}-${{github.ref_name}}.zip + dest: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os.filename }}-${{github.ref_name}}.zip - uses: softprops/action-gh-release@v1 with: - files: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os }}-${{github.ref_name}}.zip + files: ${{ secrets.ReleaseZipName }}_${{ matrix.config.os.filename }}-${{github.ref_name}}.zip # - name: Zip the Build # run: Compress-Archive -Path ./dist/main/* -DestinationPath ${{ secrets.ReleaseZipName }}_${{ github.ref_name }}.zip