AuthEndpoints v3.0.0-alpha.1 #5
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
| name: Publish Nuget Packages | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .Net SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.x | |
| - name: Restore Dependencies | |
| run: dotnet restore AuthEndpoints.sln | |
| - name: Run Tests | |
| run: dotnet test AuthEndpoints.sln --configuration Release --verbosity minimal | |
| - name: Make Nuget Packages | |
| run: dotnet pack -c Release | |
| - name: Publish To Nuget | |
| run: dotnet nuget push src/*/bin/Release/*.nupkg --skip-duplicate --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json | |
| env: | |
| NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }} |