Skip to content

Commit

Permalink
Merge pull request #20 from TunNetCom/MarwenSaad-patch-3
Browse files Browse the repository at this point in the history
Marwen saad patch 3
  • Loading branch information
Nieze-BenMansour authored Jul 31, 2024
2 parents fc5b827 + e8bce56 commit d9c3eaf
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/PublishNugate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish NuGet Package

on:
push:
branches:
- main

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: echo "::set-output name=project_path::$(find . -name '*.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_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit d9c3eaf

Please sign in to comment.