mirror of
https://github.com/Grace-Solutions/PSProxmox.git
synced 2026-09-04 11:15:41 +00:00
Update build scripts to support version parameter
This commit is contained in:
@@ -4,13 +4,14 @@
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[string]$ApiKey,
|
||||
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$Version = (Get-Date -Format "yyyy.MM.dd.HHmm")
|
||||
)
|
||||
|
||||
# Ensure the module is built
|
||||
Write-Host "Building the module..."
|
||||
Write-Host "Building the module with version $Version..."
|
||||
$env:MODULE_VERSION = $Version
|
||||
& "$PSScriptRoot\build-release-only.ps1"
|
||||
|
||||
# Get the release directory
|
||||
|
||||
Reference in New Issue
Block a user