Skip to content

Commit

Permalink
update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Mar 9, 2024
1 parent 38fe04d commit f44307e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Build

on:
push:
branches: [ "main" ]
branches: [ "main", "dev/*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev/*" ]


jobs:
Expand Down Expand Up @@ -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/

0 comments on commit f44307e

Please sign in to comment.