Skip to content

Update dependencies, build + test for .net 8 (#47) #56

Update dependencies, build + test for .net 8 (#47)

Update dependencies, build + test for .net 8 (#47) #56

Workflow file for this run

name: Publish to Nuget
on:
push:
branches: [ main ]
paths:
- 'StreamRegex.Extensions/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Nerdbank.GitVersioning
# You may pin to the exact commit or the version.
# uses: dotnet/nbgv@49d4f35f34d895d282b99855b2e0034f8f608ba5
uses: dotnet/[email protected]
with:
setAllVars: true
- name: Restore dependencies
run: dotnet restore
- name: Test Before Publish
run: dotnet test --verbosity normal -f net7.0
- name: Build
run: dotnet pack --no-restore StreamRegex.Extensions -o NuPkgs
- name: Setup NuGet.exe for use with actions
uses: NuGet/[email protected]
with:
nuget-api-key: ${{secrets.NUGET_API_KEY}}
- name: Nuget Publish
run: nuget push NuPkgs/*.*nupkg -Source https://api.nuget.org/v3/index.json