Publish-GitLabPSModule
SYNOPSIS
Publish a PowerShell module to a NuGet repository.
SYNTAX
Publish-GitLabPSModule [[-nugetBaseURI] <Object>] [[-RepoName] <Object>] [[-pwdstateAPIKey] <Object>]
DESCRIPTION
This function automates the process of publishing a PowerShell module to a NuGet repository. It validates the branch, ensures required dependencies are installed, updates the module version, and publishes the module to the specified repository. The function also handles repository registration and cleans up temporary installations.
EXAMPLES
EXAMPLE 1
Publishes the PowerShell module to the specified NuGet repository.
EXAMPLE 2
Publishes the PowerShell module to the default NuGet repository "PSGallery_Local".
PARAMETERS
-nugetBaseURI
The base URI of the NuGet repository. Default is "https://nuget.gentgrp.gent.be/nuget/PSGalleryServer".
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: Https://nuget.gentgrp.gent.be/nuget/PSGalleryServer
Accept pipeline input: False
Accept wildcard characters: False
-RepoName
The name of the NuGet repository where the module will be published. Default is "PSGallery_Local".
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: PSGallery_Local
Accept pipeline input: False
Accept wildcard characters: False
-pwdstateAPIKey
The title of the PasswordState entry containing the API key for the NuGet repository.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: ProGet API Key
Accept pipeline input: False
Accept wildcard characters: False