Skip to content

Merge pull request #19 from LykkeBusiness/LT-4874-update-nugets #21

Merge pull request #19 from LykkeBusiness/LT-4874-update-nugets

Merge pull request #19 from LykkeBusiness/LT-4874-update-nugets #21

Workflow file for this run

name: Publish to nuget
on:
push:
tags: '5.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Create the package
run: dotnet pack --include-symbols --include-source --configuration Release src/Lykke.HttpClientGenerator /p:Version=${GITHUB_REF#refs/tags/}
- name: Publish the package to Nuget
run: dotnet nuget push src/Lykke.HttpClientGenerator/bin/Release/*.nupkg -s "https://api.nuget.org/v3/index.json" -k ${{ secrets.NUGET_TOCKEN }} --skip-duplicate