AspNetCore NuGet Push #10
This file contains 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: AspNetCore NuGet Push | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Update AspNetCore NuGet package | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup .NET Core @ Latest | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build and Publish | |
run: | | |
cd ./src/RedisRateLimiting.AspNetCore/ | |
dotnet pack -c Release -o artifacts -p:PackageVersion=1.1.0 | |
- name: Push | |
run: dotnet nuget push ./src/RedisRateLimiting.AspNetCore/artifacts/RedisRateLimiting.AspNetCore.1.1.0.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json |