Skip to content

Package

Package #2

Workflow file for this run

name: Package
on:
workflow_dispatch:
jobs:
build:
name: Package and Deploy
runs-on: windows-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
- name: ✨ Setup .NET
uses: actions/setup-dotnet@v4
- name: 🚚 Restore
run: dotnet restore src
- name: 🛠️ Build
run: dotnet build src --configuration Release --no-restore
- name: 🧪 Test
run: dotnet test src --configuration Release --no-build
- name: 📦 Pack
run: dotnet pack src --configuration Release
- name: 🔑 Secret
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: 🚀 Deploy
run: nuget push "src\FftSharp\bin\Release\*.nupkg" -SkipDuplicate -Source https://api.nuget.org/v3/index.json