From 3db99e730d0bdf644a9d355dba80affa07eec683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ForDream=E4=B8=B6=E6=A2=A6=E7=A9=BA?= <56014859+Forgot-Dream@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:00:15 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42c6512..8db2f30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: env: # artifacts 命名 [名字]-[build-number]-[commit-hash] artifactName: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }} - appPackagesExecutable: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}.exe + appPackagesExecutable: SduNetCheckTool-build.${{github.run_number}}-${{ github.sha }}.zip solutionPath: SduNetCheckTool.sln guiProjectDirectory: SduNetCheckTool.GUI @@ -48,15 +48,15 @@ jobs: - name: Restore and build the Wpf application run: ./.github/utils/build.ps1 -SolutionPath ${{ env.solutionPath }} -Configuration ${{ env.Configuration }} -Platform ${{ env.Platform }} -RuntimeIdentifier ${{ env.RuntimeIdentifier }} - # - name: Rename file - # run: | - # mkdir build - # Compress-Archive -Path ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }}\app.publish\SduNetCheckTool.GUI.exe -DestinationPath build\${{ env.appPackagesExecutable }} + - name: Rename file + run: | + mkdir build + Compress-Archive -Path ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }}\ -DestinationPath build\${{ env.appPackagesExecutable }} - name: 'Upload Artifact' uses: actions/upload-artifact@v4 with: name: ${{ env.artifactName }} path: | - ${{ env.guiProjectDirectory }}\${{ env.appPackagesDirectory }} + build\${{ env.appPackagesExecutable }} retention-days: 15