Skip to content

Commit

Permalink
updated blog details
Browse files Browse the repository at this point in the history
  • Loading branch information
belibug committed Jun 28, 2024
2 parents b99dbd6 + bedacb9 commit 9570eb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:

- name: Publish Package to Github
run: |
Register-PSResourceRepository -Name GH -Uri "https://nuget.pkg.github.com/belibug/index.json" -Trusted
Publish-PSResource -Path ./dist/ModuleTools -Repository PSGallery -ApiKey $Env:ApiKey
env:
ApiKey: ${{ secrets.PSGALLERY_API }}
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ The structure of the ModuleTools module is meticulously designed according to Po
> [!IMPORTANT]
> Checkout this [Blog article](https://blog.belibug.com/post/ps-modulebuild) explaining core concepts of ModuleTools.
## Install

```PowerShell
Install-Module -Name ModuleTools
```

## Design

To ensure this module works correctly, you need to maintain the folder structure and the `project.json` file path. The best way to get started is by running the `New-MTModule` command, which guides you through a series of questions and creates the necessary scaffolding.
Expand Down Expand Up @@ -161,4 +167,4 @@ This project is licensed under the MIT License. See the LICENSE file for details
[BadgeIOCount]: https://img.shields.io/powershellgallery/dt/ModuleTools?label=ModuleTools%40PowerShell%20Gallery
[PSGalleryLink]: https://www.powershellgallery.com/packages/ModuleTools/
[WorkFlowStatus]: https://img.shields.io/github/actions/workflow/status/belibug/ModuleTools/Tests.yml
[WorkFlowStatus]: https://img.shields.io/github/actions/workflow/status/belibug/ModuleTools/Tests.yml
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ProjectName": "ModuleTools",
"Description": "ModuleTools is a versatile, standalone PowerShell module builder. Create anything from simple to robust modules with ease. Built for CICD and Automation.",
"Version": "0.0.3",
"Version": "0.0.4",
"Manifest": {
"Author": "Manjunath Beli",
"PowerShellHostVersion": "7.4",
Expand Down
4 changes: 2 additions & 2 deletions src/private/Build.Manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ function Build-Manifest {
ModuleVersion = $data.Version
PowerShellHostVersion = $data.Manifest.PowerShellHostVersion
Guid = $data.Manifest.GUID
Tags = $data.Manifest.Tags
}
if ($data.Manifest.Tags) { $ParmsManifest.add('Tags', $data.Manifest.Tags ) }
if ($data.Manifest.ProjecUri) { $ParmsManifest.add('ProjectUri', $data.Manifest.ProjecUri) }
if ($data.Manifest.LicenseUri) { $ParmsManifest.add('LicenseUri', $data.Manifest.LicenseUri) }
if ($data.Manifest.IconUri) { $ParmsManifest.add('IconUri', $data.Manifest.IconUri) }

try {
New-ModuleManifest @ParmsManifest -ErrorAction Stop
} catch {
Write-Error -Message 'Failed to create Manifest' -ErrorAction Stop
'Failed to create Manifest: {0}' -f $_.Exception.Message | Write-Error -ErrorAction Stop
}
}

0 comments on commit 9570eb4

Please sign in to comment.