Skip to content

security update and dotnet 8 adoption (#19) #4

security update and dotnet 8 adoption (#19)

security update and dotnet 8 adoption (#19) #4

Workflow file for this run

name: BuildAndPublish
on:
push:
branches: [ master ]
paths-ignore:
- '.github/**'
workflow_dispatch:
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'dotnet-storedprocsgen.sln'
MAIN_PROJECT: 'dotnet-storedprocsgen.csproj'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NuGet
uses: NuGet/[email protected]
with:
nuget-version: latest
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.*
- name: Restore dependencies
working-directory: ./Source/dotnet-storedprocsgen
run: dotnet restore $MAIN_PROJECT
- name: Build
working-directory: ./Source/dotnet-storedprocsgen
run: dotnet build $MAIN_PROJECT --configuration $BUILD_CONFIG --no-restore
- name: Push to nuget
working-directory: ./Source/dotnet-storedprocsgen
run: dotnet nuget push **/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}