diff --git a/.github/workflows/PublishNuget.yaml b/.github/workflows/PublishNuget.yaml index 2226de4742..1e26bb0748 100644 --- a/.github/workflows/PublishNuget.yaml +++ b/.github/workflows/PublishNuget.yaml @@ -6,7 +6,10 @@ on: types: [completed] branches: ['main'] -permissions: read-all +permissions: + actions: read + contents: write + packages: write defaults: run: diff --git a/Build/Scripts/Package/PackNuget.ps1 b/Build/Scripts/Package/PackNuget.ps1 index ebb4f753cb..4f0690ba39 100644 --- a/Build/Scripts/Package/PackNuget.ps1 +++ b/Build/Scripts/Package/PackNuget.ps1 @@ -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 @@ -49,4 +44,4 @@ Initialize-PackageFolder -OutputPackageFolder $OutputPackageFolder -AppFolders $ Test-PackageFolder -OutputPackageFolder $OutputPackageFolder -ExpectedApplications $applicationsToPackage # Pack Nuget package -nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder \ No newline at end of file +nuget pack $manifestOutputPath -OutputDirectory $OutputPackageFolder