Update HttpGossip.csproj #8
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, Test and Deploy HttpGossip Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-test-pack-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build (Release) | |
| run: dotnet build --configuration Release | |
| - name: Run tests | |
| run: dotnet test | |
| - name: Pack NuGet package | |
| run: dotnet pack --configuration Release | |
| - name: Publish to NuGet.org | |
| run: dotnet nuget push "src/HttpGossip/bin/Release/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |