File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1313
1414jobs :
1515 build :
16- runs-on : ubuntu -latest
16+ runs-on : windows -latest
1717 permissions :
1818 contents : write
1919 packages : write
@@ -63,15 +63,17 @@ jobs:
6363 - name : Update version in csproj files
6464 if : steps.get_version.outputs.is_release == 'true'
6565 run : |
66- sed -i 's/<Version>.*<\/Version>/<Version>${{ steps.get_version.outputs.version }}<\/Version>/' src/Octopus.Blazor/Octopus.Blazor.csproj
67- sed -i 's/<Version>.*<\/Version>/<Version>${{ steps.get_version.outputs.version }}<\/Version>/' src/Octopus.Api.Client/Octopus.Api.Client.csproj
68- shell : bash
66+ $version = "${{ steps.get_version.outputs.version }}"
67+ foreach ($file in @("src/Octopus.Blazor/Octopus.Blazor.csproj", "src/Octopus.Api.Client/Octopus.Api.Client.csproj")) {
68+ (Get-Content $file) -replace '<Version>.*</Version>', "<Version>$version</Version>" | Set-Content $file
69+ }
70+ shell : pwsh
6971
7072 - name : Build
7173 run : dotnet build --configuration Release --no-restore
7274
7375 - name : Run tests
74- run : dotnet test --configuration Release --no-build --verbosity normal || echo "No tests found"
76+ run : dotnet test --configuration Release --no-build --verbosity normal
7577
7678 - name : Pack NuGet packages
7779 if : steps.get_version.outputs.is_release == 'true'
Original file line number Diff line number Diff line change 1818 <PackageReference Include =" Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version =" 9.0.0" />
1919 <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 7.2.0" />
2020 <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 9.0.0" />
21- <!-- xBIM packages for IFC to WexBIM conversion -->
2221 <PackageReference Include =" Xbim.Essentials" Version =" 6.0.563" />
2322 <PackageReference Include =" Xbim.Geometry.Engine.Interop" Version =" 6.3.873-netcore" />
2423 <PackageReference Include =" Xbim.ModelGeometry.Scene" Version =" 6.3.873-netcore" />
You can’t perform that action at this time.
0 commit comments