Skip to content

Merge pull request #2 from Dative-GPI/dimitrilexi-patch-1 #28

Merge pull request #2 from Dative-GPI/dimitrilexi-patch-1

Merge pull request #2 from Dative-GPI/dimitrilexi-patch-1 #28

Workflow file for this run

name: Publish Package to Nuget.org
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
folder: [Foundation.Clients, Foundation.SourceClients]
steps:
# Checking out repository
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
# pack file to publish to NuGet
- name: Create a NuGet Package 🔧
run: |
cd ${{matrix.folder}}
dotnet pack --configuration Release -p:PackageVersion=${{ github.ref_name}} -o .
# Publishing with tag name as version
- name: Publishing to NuGet 🚀
run: |
cd ${{matrix.folder}}
dotnet nuget push ${{matrix.folder}}.${{ github.ref_name}}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json