Merge pull request #7 from Calabonga/net8-migration #30
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: .NET Core | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v2 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Install dependencies | |
| run: dotnet restore src/Calabonga.AspNetCore.AppDefinitions.sln | |
| - name: Build the NuGet package | |
| run: dotnet build src/Calabonga.AspNetCore.AppDefinitions.sln --configuration Release --output ${{env.DOTNET_ROOT}}\Package | |
| - name: Publish NuGet Package | |
| run: dotnet nuget push ${{env.DOTNET_ROOT}}\Package\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |