Skip to content

Commit 2debe36

Browse files
committed
add 'publish' task to publish module
1 parent b1478b9 commit 2debe36

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

makefile

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.PHONY: test
22
test:
33
pwsh -Command 'Invoke-Pester -EnableExit (Get-childItem -Recurse *.tests.ps1).fullname'
4+
5+
.PHONY: publish
6+
publish:
7+
pwsh -File ./tools/publish-module.ps1 "$$(pwd)" "${PSGALLERY_API_KEY}"

tools/publish-module.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
param($ProjectDirectory,$PSGALLERY_API_KEY)
2+
3+
$Env:PSModulePath = $Env:PSModulePath + ":$ProjectDirectory"
4+
Publish-Module `
5+
-Name "Lesspass" `
6+
-Repository "PSGallery" `
7+
-NuGetApiKey $Env:PSGALLERY_API_KEY `

0 commit comments

Comments
 (0)