5.3.0 #38
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 is a basic workflow to help you get started with Actions | |
| name: Nuget Publish | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Update NuGet package | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v1 | |
| - name: Setup .NET Core @ Latest | |
| uses: actions/setup-dotnet@v1 | |
| - name: Build solution and generate NuGet package | |
| run: | | |
| cd src/freeclimb | |
| dotnet pack -c Release -o out | |
| - name: Push generated package to GitHub registry | |
| env: | |
| NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}} | |
| run: dotnet nuget push ./src/freeclimb/out/*.nupkg --skip-duplicate --no-symbols --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json |