Bump Microsoft.Extensions.Configuration from 10.0.2 to 10.0.3 #239
Workflow file for this run
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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: .NET | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| # GitHub Packages Feed settings | |
| GITHUB_FEED: https://nuget.pkg.github.com/ | |
| GITHUB_USER: devjonny | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.0.x | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: Linux-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: | | |
| Linux-nuget- | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release | |
| - name: Pack | |
| run: dotnet pack src/InteractiveCLI/InteractiveCLI.csproj --output artifacts --no-build --no-restore --configuration Release | |
| - name: Upload packages as artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: nuget packages | |
| path: "artifacts/*.nupkg" | |
| - name: Push to GitHub Feed | |
| if: ${{ github.event_name != 'pull_request' }} | |
| run: dotnet nuget push **/*.nupkg --source https://nuget.pkg.github.com/${REPOSITORY_OWNER}/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_NUGET_TOKEN }} | |
| REPOSITORY_OWNER: ${{ github.repository_owner }} | |
| release: | |
| if: startsWith(github.ref, 'refs/tags') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| needs: [build] | |
| steps: | |
| - uses: actions/download-artifact@v7 | |
| with: | |
| name: nuget packages | |
| - name: Push generated package to NuGet | |
| run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate |