Merge pull request #2 from Dative-GPI/dimitrilexi-patch-1 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |