Skip to content

property-selection-nuget #7

property-selection-nuget

property-selection-nuget #7

name: property-selection-nuget
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
include-prerelease: true
- name: Build and pack
run: sudo /home/runner/.dotnet/dotnet build ./RoyalCode.Utils/RoyalCode.Extensions.PropertySelection/RoyalCode.Extensions.PropertySelection.csproj -c Release
- name: publish nuget package
run: sudo /home/runner/.dotnet/dotnet nuget push ./RoyalCode.Utils/RoyalCode.Extensions.PropertySelection/**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json