diff --git a/action.ps1 b/action.ps1 index 0078434..1c1af65 100644 --- a/action.ps1 +++ b/action.ps1 @@ -12,6 +12,6 @@ New-Item -Path /github/workspace/publish -ItemType Directory New-ModuleManifest -Path /github/workspace/$name.psd1 -ModuleVersion $Version -Description $Description $Package = Compress-PSResource -Path /github/workspace -DestinationPath /github/workspace/publish -PassThru -Invoke-WebRequest -Uri "$Url/api/v1/deployments" -Headers @{ +Invoke-WebRequest -Uri "$Url/api/v1/deployment" -Headers @{ "Authorization" = "Bearer $AppToken" } -InFile $Package -Method Put -ContentType "application/octet-stream" \ No newline at end of file