Skip to content

Update dotnet.yml

Update dotnet.yml #10

Workflow file for this run

name: master
on:
push:
branches:
- master
paths:
- 'Directory.Build.props'
- '.github/workflows/dotnet.yml'
env:
DOTNET_VERSION: "9.0.x"
jobs:
deploy-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .Net SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore Dependencies
run: dotnet restore --configuration:Release
- name: Build
run: dotnet build --configuration:Release --no-restore
- name: Pack
run: dotnet pack --no-build --configuration Release
- name: Push NuGet package
run: |
dotnet nuget push **/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET }}
env:
NUGET_API_KEY: ${{ secrets.NUGET }}