Skip to content

Merge pull request #5 from Staticsoft/feature/better-exception-handling #6

Merge pull request #5 from Staticsoft/feature/better-exception-handling

Merge pull request #5 from Staticsoft/feature/better-exception-handling #6

name: Publish NuGet packages
on:
push:
branches:
- master
jobs:
PublishNugetPackages:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
8.0.x
- name: Checkout repository
uses: actions/checkout@v2
- name: Create packages
run: dotnet pack Packages.sln -o Packages -c Release --version-suffix ${{ github.run_number }}
- name: Publish packages
run: dotnet nuget push ./Packages/*.nupkg --source https://nuget.pkg.github.com/Staticsoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }}