Created
September 1, 2020 12:23
-
-
Save r-brown/a2c61a4a764e7c22212129c015e04b72 to your computer and use it in GitHub Desktop.
GitHub Actions - NetLicensing C# Client - Relese workflow
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: 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