Skip to content

Commit 56fe922

Browse files
committed
Sign NuGet package and .NET assemblies on build
1 parent 9bc2c96 commit 56fe922

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

appveyor.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ version: 0.1.1-build-0{build}
1515

1616
image: Visual Studio 2022
1717

18+
environment:
19+
SIGNPATH_API_TOKEN:
20+
secure: PNb7xYHfAcpf2N/CQeWt4ODcpca0Mho819qqRGxYI9ILG8Nrw14UWGLca8cCvsgo
21+
1822
#---------------------------------#
1923
# build configuration #
2024
#---------------------------------#
2125

22-
build_script: build.bat
26+
before_build:
27+
- ps: Install-Module -Name SignPath
28+
29+
build_script: build.bat sign
2330

2431
#---------------------------------#
2532
# tests configuration #

psake-project.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Task Collect -Depends Test -Description "Copy all artifacts to the build folder.
2121
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
2222
$version = Get-PackageVersion
2323

24-
Create-Archive "Hangfire.DynamicJobs-$version"
2524
Create-Package "Hangfire.DynamicJobs" $version
25+
Create-Archive "Hangfire.DynamicJobs-$version"
2626
}
27+
28+
Task Sign -Depends Pack -Description "Sign artifacts." {
29+
$version = Get-PackageVersion
30+
31+
Sign-ArchiveContents "Hangfire.DynamicJobs-$version" "hangfire"
32+
}

0 commit comments

Comments
 (0)