Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Oct 3, 2024
1 parent 5be8292 commit 5f78d63
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"

0 comments on commit 5f78d63

Please sign in to comment.