Skip to content

Commit

Permalink
Added workflow for nuget release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nesterov committed May 27, 2020
1 parent 10fee47 commit deb5858
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish On NuGet

on:
push:
branches:
- master
tags:
- '*' # Push version tags matching to *, i.e. v1.0.0, 20.15.10

jobs:
publish:
name: List on NuGet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build
run: dotnet build --configuration Release "Lykke.Sdk.sln"

- name: Create the package
run: dotnet pack --configuration Release src/Lykke.Sdk/Lykke.Sdk.csproj /p:Version=${GITHUB_REF#refs/tags/}

- name: Publish the package to GPR
run: dotnet nuget push src/Lykke.Sdk/bin/Release/*.nupkg -s "https://api.nuget.org/v3/index.json" -k ${{ secrets.NUGET_API_KEY }}

0 comments on commit deb5858

Please sign in to comment.