From 56e54bc1bb75968d170524e0e25f83554f4952c4 Mon Sep 17 00:00:00 2001 From: kormic911 Date: Wed, 8 Oct 2025 19:52:06 -0500 Subject: [PATCH 1/2] Updating ci workflow and adding publish workflow. --- .github/workflows/CI.yaml | 10 +++++++++- .github/workflows/publish.yaml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 15348ca..68651f4 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -10,7 +10,15 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - uses: actions/checkout@v1 + - name: Install and cache PowerShell modules + id: psmodulecache + uses: potatoqualitee/psmodulecache@v6.2.1 + with: + modules-to-cache: BuildHelpers, Pester, psake, PowerShellBuild, PSScriptAnalyzer, powershell-yaml + - name: Build + shell: pwsh + run: ./build.ps1 -Task Build - name: Test shell: pwsh - run: ./build.ps1 -Task Test -Bootstrap + run: ./build.ps1 -Task Test diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..48fb78e --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,34 @@ +name: Publish Module +on: + push: + branches: + - main + workflow_dispatch: +jobs: + build: + runs-on: windows-latest + steps: + # Get the current version + - uses: actions/checkout@v3 + - name: Install and cache PowerShell modules + id: psmodulecache + uses: potatoqualitee/psmodulecache@v6.2.1 + with: + modules-to-cache: BuildHelpers, Pester, psake, PowerShellBuild, PSScriptAnalyzer, powershell-yaml + - shell: pwsh + # Give an id to the step, so we can reference it later + id: check_if_versions_bumped + run: | + [version]$GalleryVersion = Get-NextNugetPackageVersion -Name PSTestableData -ErrorAction Stop + [version]$GithubVersion = Get-MetaData -Path ./PSTestableData/PSTestableData.psd1 -PropertyName ModuleVersion -ErrorAction Stop + $bumped = $GithubVersion -ge $GalleryVersion + + # Set the output named "version_bumped" + Write-Host "::set-output name=version_bumped::$bumped" + + - name: Publish to PSGallery + shell: pwsh + if: steps.check_if_versions_bumped.outputs.version_bumped == 'True' + env: + PSGALLERY_API_KEY: ${{ secrets.PS_GALLERY_KEY }} + run: ./build.ps1 -Task Publish From f2dd5080b058103d1879029bb36e9b749b28e6d9 Mon Sep 17 00:00:00 2001 From: kormic911 Date: Wed, 8 Oct 2025 19:55:44 -0500 Subject: [PATCH 2/2] updating change log. --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 586ece2..58a12e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) -and this project adheres to [Semantic Versioning](http://semver.org/). +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.0] Unreleased +## [1.0.0] 2025-10-08 +### Added + +- Initial release