From 499a93583149d871bb212b301ebfa6fe823e765e Mon Sep 17 00:00:00 2001 From: Chenx Dust Date: Mon, 25 May 2026 00:18:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=AE=A9=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E9=87=87=E7=94=A8=E6=AF=8F=E5=A4=9C=E6=9E=84=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=20zju-connect=20=E6=88=90=E4=B8=BA=E4=B8=80=E4=B8=AA=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b55e64c..16c485d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,10 @@ on: type: boolean default: true description: "Nightly Build" + zju_connect_nightly: + type: boolean + default: false + description: "Use nightly zju-connect" version: type: string default: '' @@ -62,7 +66,7 @@ jobs: - name: Download and copy files shell: pwsh run: | - .\scripts\deploy-windows.ps1 -TargetName "${{ env.TARGET_NAME }}" -DisplayName "${{ env.DISPLAY_NAME }}" -BuildDir "build" -Architecture "amd64" -Nightly ${{ inputs.nightly || github.event_name != 'release' }} + .\scripts\deploy-windows.ps1 -TargetName "${{ env.TARGET_NAME }}" -DisplayName "${{ env.DISPLAY_NAME }}" -BuildDir "build" -Architecture "amd64" -Nightly ${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }} Compress-Archive -Path "${{ env.DISPLAY_NAME }}" -DestinationPath ${{ env.ARCHIVE_NAME }}.zip - name: Upload artifact @@ -110,7 +114,7 @@ jobs: - name: Download and copy files shell: pwsh run: | - .\scripts\deploy-windows.ps1 -TargetName "${{ env.TARGET_NAME }}" -DisplayName "${{ env.DISPLAY_NAME }}" -BuildDir "build" -Architecture "arm64" -Nightly ${{ inputs.nightly || github.event_name != 'release' }} + .\scripts\deploy-windows.ps1 -TargetName "${{ env.TARGET_NAME }}" -DisplayName "${{ env.DISPLAY_NAME }}" -BuildDir "build" -Architecture "arm64" -Nightly ${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }} Compress-Archive -Path "${{ env.DISPLAY_NAME }}" -DestinationPath ${{ env.ARCHIVE_NAME }}.zip - name: Upload artifact @@ -156,7 +160,7 @@ jobs: - name: Download and copy files run: | - ./scripts/deploy-macos.sh "${{ env.TARGET_NAME }}" "build" "x86_64" "${{ inputs.nightly || github.event_name != 'release' }}" + ./scripts/deploy-macos.sh "${{ env.TARGET_NAME }}" "build" "x86_64" "${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }}" - name: Import macOS signing certificate if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' @@ -261,7 +265,7 @@ jobs: - name: Download and copy files run: | - ./scripts/deploy-macos.sh "${{ env.TARGET_NAME }}" "build" "arm64" "${{ inputs.nightly || github.event_name != 'release' }}" + ./scripts/deploy-macos.sh "${{ env.TARGET_NAME }}" "build" "arm64" "${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }}" - name: Import macOS signing certificate if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' @@ -366,7 +370,7 @@ jobs: - name: Download and copy files run: | - ./scripts/deploy-linux.sh "${{ env.TARGET_NAME }}" "${{ env.DISPLAY_NAME }}" "build" "x86_64" "${{ inputs.nightly || github.event_name != 'release' }}" + ./scripts/deploy-linux.sh "${{ env.TARGET_NAME }}" "${{ env.DISPLAY_NAME }}" "build" "x86_64" "${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }}" mv *.AppImage ${{ env.ARCHIVE_NAME }}.AppImage - name: Upload artifact @@ -417,7 +421,7 @@ jobs: - name: Download and copy files run: | - ./scripts/deploy-linux.sh "${{ env.TARGET_NAME }}" "${{ env.DISPLAY_NAME }}" "build" "arm64" "${{ inputs.nightly || github.event_name != 'release' }}" + ./scripts/deploy-linux.sh "${{ env.TARGET_NAME }}" "${{ env.DISPLAY_NAME }}" "build" "arm64" "${{ github.event_name == 'workflow_dispatch' && inputs.zju_connect_nightly }}" mv *.AppImage ${{ env.ARCHIVE_NAME }}.AppImage - name: Upload artifact