diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d553d91..e374bcc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -55,13 +55,11 @@ jobs: with: sdk-version: 22621 - name: Restore - run: dotnet msbuild SUBSTitute.sln /t:restore + run: dotnet restore SUBSTitute.sln - name: Build - run: dotnet msbuild SUBSTitute.sln /p:Configuration=${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} /p:VersionSuffix=ci /p:RestorePackages=false - - name: Publish (win-x64) - run: dotnet msbuild SUBSTitute.sln /p:PublishProfile="src/Properties/PublishProfiles/win-x64.pubxml" /p:VersionSuffix=ci /p:RestorePackages=false - - name: Publish (win-arm64) - run: dotnet msbuild SUBSTitute.sln /p:PublishProfile="src/Properties/PublishProfiles/win-arm64.pubxml" /p:VersionSuffix=ci /p:RestorePackages=false + run: dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore -p:VersionSuffix=ci + - name: Publish + run: dotnet publish SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore -p:VersionSuffix=ci sonarcloud: name: SonarCloud runs-on: windows-latest @@ -115,5 +113,5 @@ jobs: run: | .\.sonar\scanner\dotnet-sonarscanner begin /k:"sungaila_SUBSTitute" /o:"sungaila" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml dotnet restore SUBSTitute.sln - dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore + dotnet build SUBSTitute.sln --configuration ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }} --no-restore .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"