Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/PublishNuget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
types: [completed]
branches: ['main']

permissions: read-all
permissions:
actions: read
contents: write
packages: write

defaults:
run:
Expand Down
7 changes: 1 addition & 6 deletions Build/Scripts/Package/PackNuget.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ $packageVersion = ($appsFolders -replace ".*-Apps-","" | Select-Object -First 1)
$RepoOwner = (Get-Culture).TextInfo.ToTitleCase($RepoOwner)
$packageId = "$RepoOwner-Dynamics-BusinessCentral-$RepoName"

# set first character to upper
if ($RepoOwner -eq "Microsoft") {
$RepoOwner = "DynamicsBusinessCentral"
}

Write-Host "App folder(s): $($appsFolders -join ', ')" -ForegroundColor Magenta
Write-Host "Package folder: $OutputPackageFolder" -ForegroundColor Magenta
Write-Host "Package ID: $packageId" -ForegroundColor Magenta
Expand All @@ -49,4 +44,4 @@ Initialize-PackageFolder -OutputPackageFolder $OutputPackageFolder -AppFolders $
Test-PackageFolder -OutputPackageFolder $OutputPackageFolder -ExpectedApplications $applicationsToPackage

# Pack Nuget package
nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder
nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder