diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de34c840d..352449515 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,9 @@ name: Build on: push: - branches: [ "main" ] + branches: [ "main", "dev/*" ] pull_request: - branches: [ "main" ] + branches: [ "main", "dev/*" ] jobs: @@ -42,12 +42,11 @@ jobs: $sha = "${{ steps.sha.outputs.sha }}" New-Item -Path "build/Starward/" -Type Directory msbuild src/Starward.Launcher "-property:Configuration=$env:Configuration;Platform=$env:Platform;OutDir=$(Resolve-Path "build/Starward/")" - dotnet build src/Starward -c $env:Configuration -o "build/Starward/app-build.$sha" -p:Platform=$env:Platform -p:Version="0.0.1-build.$sha" -p:DefineConstants=CI + dotnet publish src/Starward -c $env:Configuration -o "build/Starward/app-build.$sha" -p:Platform=$env:Platform -p:Version="0.0.1-build.$sha" -p:DefineConstants=CI -p:PublishTrimmed=true -p:TrimMode=partial Add-Content "build/Starward/version.ini" -Value "app_folder=app-build.$sha`r`nexe_name=Starward.exe" - Remove-Item "build/Starward/Starward.pdb" -Force - name: Upload Artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4 with: name: Starward_${{ matrix.configuration }}_${{ matrix.platform }}_${{ steps.sha.outputs.sha }} path: build/Starward/