Skip to content

Instantly share code, notes, and snippets.

@r-brown
Created September 1, 2020 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-brown/a2c61a4a764e7c22212129c015e04b72 to your computer and use it in GitHub Desktop.
Save r-brown/a2c61a4a764e7c22212129c015e04b72 to your computer and use it in GitHub Desktop.
GitHub Actions - NetLicensing C# Client - Relese workflow
name: NetLicensing C# Client - Release
on:
workflow_run:
workflows: ["NetLicensing C# Client - CI"]
branches: [ master ]
types:
- completed
jobs:
publish-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.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}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment