Skip to content

NetLicensing C# Client - Release #57

NetLicensing C# Client - Release

NetLicensing C# Client - Release #57

name: NetLicensing C# Client - Release
on:
workflow_run:
workflows: ["NetLicensing C# Client - CI"]
branches: [ master ]
types:
- completed
jobs:
publish-nuget:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
#- name: Publish to NuGet
# uses: brandedoutcast/publish-nuget@v2
# with:
# PROJECT_FILE_PATH: NetLicensingClient/NetLicensingClient.csproj
# VERSION_REGEX: '^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$'
# TAG_FORMAT: '*'
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish the package to nuget.org
run: dotnet nuget push */bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}