Skip to content

Merge pull request #26 from TunNetCom/Nieze-BenMansour-patch-6 #47

Merge pull request #26 from TunNetCom/Nieze-BenMansour-patch-6

Merge pull request #26 from TunNetCom/Nieze-BenMansour-patch-6 #47

Workflow file for this run

name: Publish NuGet Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Find .Contracts Project
id: find_contracts_project
run: project_path=$(find . -name "*AzureDevopsWebhookService.Contracts.csproj")
- name: Pack .Contracts Project
run: dotnet pack ${{ steps.find_contracts_project.outputs.project_path }} --configuration Release --output ./artifacts
- name: Publish .Contracts Package
run: dotnet nuget push "./artifacts/*.nupkg" --api-key ${{ secrets.NUGET_SECRET_KEY_TUNNETCOM }} --source "https://api.nuget.org/v3/index.json"