New-Build.ps1

$details = Import-PowerShellDataFile 'D:\OneDrive\PowerShell\GIT\NtfyPwsh\NtfyPwsh.psd1'
$newDir = "D:\OneDrive\Documents\PowerShell\Modules\NtfyPwsh\$($details.ModuleVersion)"
mkdir $newDir

# Copy all files and folders except .gitignore and tests folder
Copy-Item 'D:\OneDrive\PowerShell\GIT\NtfyPwsh\*' -Destination $newDir -Recurse -Exclude '.gitignore','tests'

$SPlat = @{
    Path        = $newDir
    NuGetApiKey = 'oy2lvrj6xyw7y6h6izna4l2kounjmddupplvtydqhc44fa'
    WhatIf      = $false
    Verbose     = $true
}
Publish-Module @SPlat