Skip to content

DN-1666 updated csproj for nuget package push #2

DN-1666 updated csproj for nuget package push

DN-1666 updated csproj for nuget package push #2

Workflow file for this run

name: build and push to nuget
on:
push:
branches:
- feature/DN-1666-IN-Create-pipelines-for-open-source-Nuget-packages
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.*
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Pack
run: dotnet pack --no-build --configuration Release --output ./nuget
- name: Push
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- run: dotnet nuget push "./nuget/*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate