Skip to content

Commit ab0dae2

Browse files
committed
Improvements to release workflow and updates to gitignore
1 parent 7481a80 commit ab0dae2

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*.psd1
22
release/
3-
out/
3+
out/
4+
.idea/
5+
/StorageGRID-Webscale.iml

tools/StorageGRID-Webscale-Tools.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function New-GithubRelease {
1010
[Parameter(Mandatory = $false)][String]$GitHubRepository="StorageGRID-Webscale",
1111
[Parameter(Mandatory = $false)][switch]$Draft=$false,
1212
[Parameter(Mandatory = $false)][switch]$PreRelease=$false
13-
1413
)
1514

1615
# The github API key must be available in $GitHubApiKey (https://github.com/blog/1509-personal-api-tokens)
@@ -74,7 +73,8 @@ function New-SGWRelease {
7473
[Parameter(Mandatory = $false)][switch]$Major,
7574
[Parameter(Mandatory = $false)][switch]$Minor,
7675
[Parameter(Mandatory = $false)][switch]$Build,
77-
[Parameter(Mandatory = $false)][switch]$Release
76+
[Parameter(Mandatory = $false)][switch]$Release,
77+
[Parameter(Mandatory = $true)][X509Certificate]$Certificate
7878
)
7979

8080
$ErrorActionPreference = "Stop"
@@ -148,8 +148,7 @@ function New-SGWRelease {
148148
Write-Host "Signing PowerShell files..."
149149

150150
# Code Signing
151-
$cert = Get-ChildItem cert:\CurrentUser\My -CodeSigningCert
152-
Get-ChildItem $dst\*.ps* | % { $_.FullName } | Set-AuthenticodeSignature -Certificate $cert | Out-Null
151+
Get-ChildItem $dst\*.ps* | % { $_.FullName } | Set-AuthenticodeSignature -Certificate $Certificate -TimestampServer "http://timestamp.comodoca.com/authenticode" | Out-Null
153152

154153
Write-Host "Creating the release archive..."
155154

0 commit comments

Comments
 (0)