-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e75bc0a
commit f72c091
Showing
5 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish [GitHub.Pages] | ||
|
||
on: | ||
push: | ||
paths: | ||
- scripts/** | ||
- src/GitHub.Pages/** | ||
- .github/workflows/Publish.GitHub.Pages.yml | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
env: | ||
ModuleName: 'GitHub.Pages' | ||
APIKey: ${{ secrets.apikey }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Publish module | ||
run: | | ||
.\scripts\Publish-Module.ps1 -ModuleName $env:ModuleName -APIKey $env:APIKey -Verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# | ||
# Module manifest for module 'GitHub.Pages' | ||
# | ||
# Generated by: Marius Storhaug | ||
# | ||
# Generated on: 16.12.2021 | ||
# | ||
|
||
@{ | ||
|
||
# Script module or binary module file associated with this manifest. | ||
# RootModule = '' | ||
|
||
# Version number of this module. | ||
ModuleVersion = '0.0.1' | ||
|
||
# Supported PSEditions | ||
CompatiblePSEditions = 'Core' | ||
|
||
# ID used to uniquely identify this module | ||
GUID = '78c20f7d-22df-419b-8846-7ec0dc3c6fd7' | ||
|
||
# Author of this module | ||
Author = 'Marius Storhaug' | ||
|
||
# Company or vendor of this module | ||
CompanyName = 'Marius Storhaug' | ||
|
||
# Copyright statement for this module | ||
Copyright = '(c) Marius Storhaug. All rights reserved.' | ||
|
||
# Description of the functionality provided by this module | ||
Description = 'PowerShell Module for GitHub.Pages' | ||
|
||
# Minimum version of the PowerShell engine required by this module | ||
PowerShellVersion = '7.1' | ||
|
||
# Name of the PowerShell host required by this module | ||
# PowerShellHostName = '' | ||
|
||
# Minimum version of the PowerShell host required by this module | ||
# PowerShellHostVersion = '' | ||
|
||
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. | ||
# DotNetFrameworkVersion = '' | ||
|
||
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. | ||
# ClrVersion = '' | ||
|
||
# Processor architecture (None, X86, Amd64) required by this module | ||
# ProcessorArchitecture = '' | ||
|
||
# Modules that must be imported into the global environment prior to importing this module. | ||
# This loads any modules listed unless they've already been loaded. For example, some modules | ||
# may already be loaded by a different module. It's possible to specify a specific version to | ||
# load using RequiredVersion rather than ModuleVersion. When ModuleVersion is used it will load | ||
# the newest version available with a minimum of the version specified. You can combine strings | ||
# and hash tables in the parameter value. | ||
# Example: RequiredModules = @("MyModule", @{ModuleName = "MyDependentModule"; ModuleVersion = "2.0"; GUID = "cfc45206-1e49-459d-a8ad-5b571ef94857" }) | ||
# Example: RequiredModules = @('MyModule', @{ModuleName = 'MyDependentModule'; RequiredVersion = '1.5'; GUID = 'cfc45206-1e49-459d-a8ad-5b571ef94857' }) | ||
RequiredModules = @() | ||
|
||
# Assemblies that must be loaded prior to importing this module | ||
# RequiredAssemblies = @() | ||
|
||
# Script files (.ps1) that are run in the caller's environment prior to importing this module. | ||
# ScriptsToProcess = @() | ||
|
||
# Type files (.ps1xml) to be loaded when importing this module | ||
# TypesToProcess = @() | ||
|
||
# Format files (.ps1xml) to be loaded when importing this module | ||
# FormatsToProcess = @() | ||
|
||
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess | ||
# NestedModules = @() | ||
|
||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. | ||
FunctionsToExport = '*' | ||
|
||
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. | ||
CmdletsToExport = @() | ||
|
||
# Variables to export from this module | ||
VariablesToExport = '*' | ||
|
||
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. | ||
AliasesToExport = @() | ||
|
||
# DSC resources to export from this module | ||
# DscResourcesToExport = @() | ||
|
||
# List of all modules packaged with this module | ||
# ModuleList = @() | ||
|
||
# List of all files packaged with this module | ||
# FileList = @() | ||
|
||
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. | ||
PrivateData = @{ | ||
|
||
PSData = @{ | ||
|
||
# Tags applied to this module. These help with module discovery in online galleries. | ||
Tags = 'GitHub', 'PowerShell', 'pwsh' | ||
|
||
# A URL to the license for this module. | ||
LicenseUri = 'https://github.com/MariusStorhaug/GitHub/blob/main/LICENSE.md' | ||
|
||
# A URL to the main website for this project. | ||
ProjectUri = 'https://github.com/MariusStorhaug/GitHub' | ||
|
||
# A URL to an icon representing this module. | ||
IconUri = 'https://raw.githubusercontent.com/MariusStorhaug/GitHub/main/icons/GitHubPowerShellModule.png' | ||
|
||
# ReleaseNotes of this module | ||
ReleaseNotes = '' | ||
|
||
# Prerelease string of this module | ||
Prerelease = '' | ||
|
||
# Flag to indicate whether the module requires explicit user acceptance for install/update/save | ||
RequireLicenseAcceptance = $false | ||
|
||
# External dependent modules of this module | ||
ExternalModuleDependencies = @() | ||
|
||
} | ||
|
||
} | ||
|
||
# HelpInfo URI of this module | ||
# HelpInfoURI = '' | ||
|
||
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. | ||
# DefaultCommandPrefix = 'GitHub' | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# GitHub.Pages | ||
[Cmdletbinding()] | ||
param() | ||
|
||
Write-Verbose 'Importing subcomponents' | ||
$Folders = 'classes', 'private', 'public' | ||
# Import everything in these folders | ||
Foreach ($Folder in $Folders) { | ||
$Root = Join-Path -Path $PSScriptRoot -ChildPath $Folder | ||
Write-Verbose "Processing folder: $Root" | ||
if (Test-Path -Path $Root) { | ||
Write-Verbose "Getting all files in $Root" | ||
$Files = $null | ||
$Files = Get-ChildItem -Path $Root -Include '*.ps1', '*.psm1' -Recurse | ||
# dot source each file | ||
foreach ($File in $Files) { | ||
Write-Verbose "Importing $($File)" | ||
Import-Module $File | ||
Write-Verbose "Importing $($File): Done" | ||
} | ||
} | ||
} | ||
|
||
$Param = @{ | ||
Function = (Get-ChildItem -Path "$PSScriptRoot\public" -Include '*.ps1' -Recurse).BaseName | ||
Variable = '*' | ||
Cmdlet = '*' | ||
Alias = '*' | ||
} | ||
Export-ModuleMember @Param |
Empty file.
Empty file.