From 6b9aed612cbf0622ab13e58224a25d344e0b4066 Mon Sep 17 00:00:00 2001 From: dfinke Date: Sat, 2 Nov 2019 08:54:04 -0400 Subject: [PATCH] Added modules back to the gallery. --- .gitignore | 4 ++-- InstallModule.ps1 | 3 +++ PublishToGallery.ps1 | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 InstallModule.ps1 create mode 100644 PublishToGallery.ps1 diff --git a/.gitignore b/.gitignore index a50db38..3e6f133 100644 --- a/.gitignore +++ b/.gitignore @@ -63,5 +63,5 @@ ImportExcel.zip .vscode/settings.json ~$* -InstallModule.ps1 -PublishToGallery.ps1 +# InstallModule.ps1 +# PublishToGallery.ps1 diff --git a/InstallModule.ps1 b/InstallModule.ps1 new file mode 100644 index 0000000..d217c5f --- /dev/null +++ b/InstallModule.ps1 @@ -0,0 +1,3 @@ +$fullPath = 'C:\Program Files\WindowsPowerShell\Modules\ImportExcel' + +Robocopy . $fullPath /mir /XD .vscode .git examples data /XF appveyor.yml azure-pipelines.yml .gitattributes .gitignore \ No newline at end of file diff --git a/PublishToGallery.ps1 b/PublishToGallery.ps1 new file mode 100644 index 0000000..0b55bd1 --- /dev/null +++ b/PublishToGallery.ps1 @@ -0,0 +1,6 @@ +$p = @{ + Name = "ImportExcel" + NuGetApiKey = $NuGetApiKey +} + +Publish-Module @p \ No newline at end of file