Skip to content

Commit

Permalink
Add version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Oct 23, 2023
1 parent 5a10444 commit f524016
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 48 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ env:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
on:
workflow_dispatch:
# push:
# branches:
# - main
push:
branches:
- main

jobs:
publish-to-psgallery:
Expand All @@ -14,6 +14,18 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Version Bump
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$version = Get-Module PwshSpectreConsole -ListAvailable | Sort-Object -Property Version -Descending | Select-Object -First 1 -ExpandProperty Version
if($null -eq $version) { throw "Failed to load version" }
$newVersion = [version]::new($version.Major, $version.Minor, $version.Build + 1)
Write-Host "Bumping version from $version to $newVersion"
Update-ModuleManifest -Path .\PwshSpectreConsole\PwshSpectreConsole.psd1 -ModuleVersion $newVersion
git add PwshSpectreConsole/PwshSpectreConsole.psd1
git commit -m "Bump version to $newVersion"
git push
- name: Deploy Package
shell: pwsh
run: |
Expand Down
184 changes: 139 additions & 45 deletions PwshSpectreConsole/PwshSpectreConsole.psd1
Original file line number Diff line number Diff line change
@@ -1,47 +1,141 @@
#
# Module manifest for module 'PwshSpectreConsole'
#
# Generated by: Shaun Lawrie
#
# Generated on: 23/10/2023
#

@{
ModuleVersion = '0.2.5'
GUID = '8c5ca00d-7f0f-4179-98bf-bdaebceaebc0'
Author = 'Shaun Lawrie'
CompanyName = 'Shaun Lawrie'
Copyright = '(c) Shaun Lawrie. All rights reserved.'
Description = 'A convenient PowerShell wrapper for Spectre.Console'
PowerShellVersion = '7.0'
RootModule = 'PwshSpectreConsole'
FunctionsToExport = @(
'Add-SpectreJob',
'Format-SpectreBarChart',
'Format-SpectreBreakdownChart',
'Format-SpectrePanel',
'Format-SpectreTable',
'Format-SpectreTree',
'Get-SpectreEscapedText',
'Get-SpectreImage',
'Get-SpectreImageExperimental',
'Get-SpectreEscapedText',
'Invoke-SpectreCommandWithProgress',
'Invoke-SpectreCommandWithStatus',
'Read-SpectreMultiSelection',
'Read-SpectreMultiSelectionGrouped',
'Read-SpectrePause',
'Read-SpectreSelection',
'Read-SpectreText',
'Set-SpectreColors',
'Start-SpectreDemo',
'Wait-SpectreJobs',
'Write-SpectreFigletText',
'Write-SpectreHost',
'Write-SpectreParagraph',
'Write-SpectreRule'
)
CmdletsToExport = @()
VariablesToExport = '*'
AliasesToExport = @()
PrivateData = @{
PSData = @{
Tags = @("Windows", "Linux")
LicenseUri = 'https://github.com/ShaunLawrie/PwshSpectreConsole/blob/main/LICENSE.md'
ProjectUri = 'https://github.com/ShaunLawrie/PwshSpectreConsole'
IconUri = 'https://shaunlawrie.com/images/pwshspectreconsole.png'
}
}

# Script module or binary module file associated with this manifest.
RootModule = 'PwshSpectreConsole'

# Version number of this module.
ModuleVersion = '0.2.5'

# Supported PSEditions
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = '8c5ca00d-7f0f-4179-98bf-bdaebceaebc0'

# Author of this module
Author = 'Shaun Lawrie'

# Company or vendor of this module
CompanyName = 'Shaun Lawrie'

# Copyright statement for this module
Copyright = '(c) Shaun Lawrie. All rights reserved.'

# Description of the functionality provided by this module
Description = 'A convenient PowerShell wrapper for Spectre.Console'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '7.0'

# 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
# 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 = 'Add-SpectreJob', 'Format-SpectreBarChart',
'Format-SpectreBreakdownChart', 'Format-SpectrePanel',
'Format-SpectreTable', 'Format-SpectreTree', 'Get-SpectreEscapedText',
'Get-SpectreImage', 'Get-SpectreImageExperimental',
'Invoke-SpectreCommandWithProgress',
'Invoke-SpectreCommandWithStatus', 'Read-SpectreMultiSelection',
'Read-SpectreMultiSelectionGrouped', 'Read-SpectrePause',
'Read-SpectreSelection', 'Read-SpectreText', 'Set-SpectreColors',
'Start-SpectreDemo', 'Wait-SpectreJobs', 'Write-SpectreFigletText',
'Write-SpectreHost', 'Write-SpectreParagraph', 'Write-SpectreRule'

# 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 = 'Windows','Linux'

# A URL to the license for this module.
LicenseUri = 'https://github.com/ShaunLawrie/PwshSpectreConsole/blob/main/LICENSE.md'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/ShaunLawrie/PwshSpectreConsole'

# A URL to an icon representing this module.
IconUri = 'https://shaunlawrie.com/images/pwshspectreconsole.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 = @()

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}

0 comments on commit f524016

Please sign in to comment.