diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dc0993d6..7cf7ab4d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,12 +41,5 @@ jobs: run: dotnet run --project "./dependency/deploy/deploy.csproj" ${{ secrets.INSTALLER_COS_SECRET_ID }} ${{ secrets.INSTALLER_COS_SECRET_KEY }} "check" - name: Delpoy installer package run: | - $version=Get-ChildItem -Path D:\a\publish | ForEach-Object { $_.name } - [Environment]::SetEnvironmentVariable("version", $version, "Machine") - dotnet publish "./installer/installer.csproj" -o "D:\a\installer" -f net8.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true - ./dependency/7z/7za.exe a -r D:\a\publish\Installer_v${version}.zip D:\a\installer\* - - name: Upload installer package - uses: actions/upload-artifact@v4 - with: - name: Installer_v${{ env.version }}.zip - path: D:\a\publish\Installer_v${{ env.version }}.zip \ No newline at end of file + dotnet publish "./installer/installer.csproj" -o "D:\a\publish" -f net8.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true + dotnet run --project "./dependency/deploy/deploy.csproj" ${{ secrets.INSTALLER_COS_SECRET_ID }} ${{ secrets.INSTALLER_COS_SECRET_KEY }} "upload" \ No newline at end of file