Skip to content

Add RollForward to tool project #2

Add RollForward to tool project

Add RollForward to tool project #2

Workflow file for this run

name: Build master
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
9.0.x
8.0.x
- name: Restore dependencies
run: dotnet tool restore; dotnet restore
- name: Build and test
run: |
dotnet build --no-restore
dotnet test --no-build --verbosity normal
- name : Pack and Publish if tag present
if: startsWith(github.ref, 'refs/tags/v')
run: |
dotnet pack -c Release -o nuget-packages --no-build
dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate