Bump Microsoft.SourceLink.GitHub from 8.0.0 to 10.0.201 (#153) #284
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| tags: | |
| - 'latest' | |
| - 'v*' | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: 'Build' | |
| runs-on: windows-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| env: | |
| # don't print dotnet logo | |
| DOTNET_NOLOGO: true | |
| # disable telemetry (reduces dotnet tool output in logs) | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: csharp | |
| - name: Setup .NET Core | |
| uses: actions/[email protected] | |
| - name: Build sln | |
| run: dotnet build --configuration Release | |
| - name: Publish GenerateNotice tool | |
| run: dotnet publish --configuration Release ./src/GenerateNotice/GenerateNotice.csproj | |
| - name: Build GenerateNotice package | |
| run: dotnet build --configuration Release ./src/GenerateNotice.Nuget/nuget.proj | |
| - name: Upload GenerateNotice package | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: GenerateNotice-package | |
| path: ./src/GenerateNotice.Nuget/*.nupkg | |
| if-no-files-found: error | |
| - name: Pack | |
| run: dotnet pack --configuration Release | |
| - name: Upload Packages | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bicep-nupkg-any | |
| path: out/* | |
| if-no-files-found: error | |
| - name: Test | |
| run: dotnet test --configuration Release --collect:"XPlat Code Coverage" --settings ./.github/workflows/codecov.runsettings | |
| - name: Upload Code Coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| flags: dotnet | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |