Skip to content

🔧 Update package versions and project properties (#32) #8

🔧 Update package versions and project properties (#32)

🔧 Update package versions and project properties (#32) #8

Workflow file for this run

name: NuGet-Build
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build & Pack
run: |
dotnet build -c Release --no-restore
dotnet pack -c Release -o nupkgs
- name: Upload Artifact
uses: actions/[email protected]
with:
name: nuget-packages
path: ${{ github.workspace }}/nupkgs/*.nupkg
- name: Push NuGet
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate