Skip to content

fix typo

fix typo #53

name: Publish Package to Nuget.org
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
folder: [Bones, Bones.Akka, Bones.Converters, Bones.Flow, Bones.Grpc, Bones.Tests, Bones.X509, Bones.Akka.Monitoring, Bones.Monitoring]
steps:
# Checking out repository
- name: Checkout 🛎️
uses: actions/[email protected]
# pack file to publish to NuGet
- name: Create a NuGet Package 🔧
run: |
cd src/${{matrix.folder}}
export VERSION=${{ github.ref_name }}
dotnet pack
# Publishing with tag name as version
- name: Publishing to NuGet 🚀
run: |
cd src/${{ matrix.folder}}/bin/Debug
dotnet nuget push ${{matrix.folder}}.${{ github.ref_name}}.nupkg -k ${{ secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json