Fixed csproj indentation. #155
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-and-publish | |
| env: | |
| PROJECT: EntityFrameworkCore | |
| NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
| NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | |
| on: | |
| push: | |
| branches: [ ef-core-2, ef-core-3, ef-core-5, ef-core-6, ef-core-7, ef-core-8, ef-core-9 ] | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core 2.2 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 2.2.x | |
| - name: Setup .NET Core 3.1 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 3.1.x | |
| - name: Setup .NET 5.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 5.0.x | |
| - name: Setup .NET 6.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Setup .NET 7.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 7.0.x | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup .NET 9.0 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Build projects | |
| run: dotnet build -c Release | |
| - name: Push packages | |
| run: dotnet nuget push "**/$PROJECT*.nupkg" -k $NUGET_API_KEY -s $NUGET_SOURCE --skip-duplicate |