Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/Build-PSModule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
OutputFolder:
description: Path to the folder where the built module is outputted.
required: false
default: 'outputs/module'
default: '.PSModule/module'
Comment thread
MariusStorhaug marked this conversation as resolved.
Comment thread
MariusStorhaug marked this conversation as resolved.
Version:
description: Module version to stamp into the manifest.
required: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
[Parameter(Mandatory)]
[string] $ModuleName,

# Folder where the built modules are outputted. 'outputs/modules/MyModule'
# Folder where the built module is outputted. '.PSModule/module/MyModule'
[Parameter(Mandatory)]
[System.IO.DirectoryInfo] $ModuleOutputFolder,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
[Parameter(Mandatory)]
[string] $ModuleName,

# Folder where the built modules are outputted. 'outputs/modules/MyModule'
# Folder where the built module is outputted. '.PSModule/module/MyModule'
[Parameter(Mandatory)]
[System.IO.DirectoryInfo] $ModuleOutputFolder
)
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Build-ZensicalSite/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build-ZensicalSite

Builds Zensical documentation site output and normalizes it to `<working-directory>/_site`.
Builds Zensical documentation site output at `<working-directory>/.PSModule/site/_site`.

## Inputs

Expand Down
13 changes: 3 additions & 10 deletions .github/actions/Build-ZensicalSite/src/build-zensical-site.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,17 @@ param(
$ErrorActionPreference = 'Stop'

$resolvedWorkingDirectory = Resolve-Path -Path $WorkingDirectory | Select-Object -ExpandProperty Path
$siteWorkingDirectory = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/site'
$outputSitePath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '_site'
$siteWorkingDirectory = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/site'
$outputSitePath = Join-Path -Path $siteWorkingDirectory -ChildPath '_site'

Set-Location -Path $siteWorkingDirectory

if (-not (Test-Path -Path 'zensical.toml')) {
throw "No documentation config file found in outputs/site. Expected zensical.toml."
throw "No documentation config file found in .PSModule/site. Expected zensical.toml."
}

zensical build --config-file 'zensical.toml'

if (Test-Path -Path '_site') {
if (Test-Path -Path $outputSitePath) {
Remove-Item -Path $outputSitePath -Recurse -Force
}
Move-Item -Path '_site' -Destination $outputSitePath -Force
}

if (-not (Test-Path -Path $outputSitePath)) {
throw "Expected Zensical output at $outputSitePath but it was not created."
}
21 changes: 7 additions & 14 deletions .github/actions/Build-ZensicalSite/src/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<#
.SYNOPSIS
Builds the Zensical site and normalizes output to the expected _site path.
Builds the Zensical site under the framework artifact directory.

.DESCRIPTION
Runs zensical build from outputs/site and moves the generated _site directory
to <WorkingDirectory>/_site for downstream workflow steps.
Runs zensical build from .PSModule/site. The generated site remains at
<WorkingDirectory>/.PSModule/site/_site for downstream workflow steps.

.EXAMPLE
./main.ps1 -WorkingDirectory '.'
Expand All @@ -19,32 +19,25 @@
#>
[CmdletBinding()]
param(
# Build working directory containing outputs/site and destination _site.
# Build working directory containing the Zensical project and output.
[Parameter(Mandatory)]
[string]$WorkingDirectory
)

$ErrorActionPreference = 'Stop'

$resolvedWorkingDirectory = Resolve-Path -Path $WorkingDirectory | Select-Object -ExpandProperty Path
$siteWorkingDirectory = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/site'
$outputSitePath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '_site'
$siteWorkingDirectory = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/site'
$outputSitePath = Join-Path -Path $siteWorkingDirectory -ChildPath '_site'

Set-Location -Path $siteWorkingDirectory

if (-not (Test-Path -Path 'zensical.toml')) {
throw "No documentation config file found in outputs/site. Expected zensical.toml."
throw "No documentation config file found in .PSModule/site. Expected zensical.toml."
}

zensical build --config-file 'zensical.toml'

if (Test-Path -Path '_site') {
if (Test-Path -Path $outputSitePath) {
Remove-Item -Path $outputSitePath -Recurse -Force
}
Move-Item -Path '_site' -Destination $outputSitePath -Force
}

if (-not (Test-Path -Path $outputSitePath)) {
throw "Expected Zensical output at $outputSitePath but it was not created."
}
4 changes: 2 additions & 2 deletions .github/actions/Document-PSModule/src/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Get-ChildItem -Path $path -Filter '*.ps1' -Recurse | Resolve-Path -Relative | Fo
Write-Host '::group::Loading inputs'
$env:GITHUB_REPOSITORY_NAME = $env:GITHUB_REPOSITORY -replace '.+/'
$moduleSourceFolderPath = Resolve-Path -Path 'src' | Select-Object -ExpandProperty Path
$modulesOutputFolderPath = Join-Path -Path . -ChildPath 'outputs/module'
$docsOutputFolderPath = Join-Path -Path . -ChildPath 'outputs/docs'
$modulesOutputFolderPath = Join-Path -Path . -ChildPath '.PSModule/module'
$docsOutputFolderPath = Join-Path -Path . -ChildPath '.PSModule/docs'

$params = @{
ModuleName = [string]::IsNullOrEmpty($Name) ? $env:GITHUB_REPOSITORY_NAME : $Name
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Inject-SiteScripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Injects JavaScript snippets from `.github/scripts/site-injectors/*.js` into gene
- name: Inject shared site scripts
uses: ./_wf/.github/actions/Inject-SiteScripts
with:
SitePath: ./_site
SitePath: ./.PSModule/site/_site
WorkflowPath: _wf
```
2 changes: 1 addition & 1 deletion .github/actions/Inject-SiteScripts/src/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
repository and injects each script into every HTML file under SitePath, once per file.

.EXAMPLE
./main.ps1 -SitePath './_site' -WorkflowPath '_wf'
./main.ps1 -SitePath './.PSModule/site/_site' -WorkflowPath '_wf'

.INPUTS
None.
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/Publish-PSModule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Publishes a pre-versioned PowerShell module artifact to the PowerShell Gallery.
| Name | Description | Required | Default |
| --- | --- | --- | --- |
| `Name` | Name of the module to publish. | No | Repository name |
| `ModulePath` | Path containing the built `<Name>/` module directory. | No | `outputs/module` |
| `ModulePath` | Path containing the built `<Name>/` module directory. | No | `.PSModule/module` |
| `ArtifactName` | Name of the module artifact to download. | No | `module` |
| `PSGALLERY_API_KEY` | PowerShell Gallery API key. | Yes | N/A |
| `WhatIf` | Logs publishing operations without publishing the module. | No | `false` |
Expand All @@ -24,7 +24,7 @@ This action does not provide outputs.
uses: ./.github/actions/Publish-PSModule
with:
Name: ExampleModule
ModulePath: outputs/module
ModulePath: .PSModule/module
ArtifactName: module
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
```
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Publish-PSModule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
ModulePath:
description: Path to the folder containing the <Name>/ module subdirectory from Build-PSModule.
required: false
default: outputs/module
default: .PSModule/module
PSGALLERY_API_KEY:
description: PowerShell Gallery API Key.
required: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Describe 'Publish-PSModule recovery' {
BeforeEach {
$script:moduleName = 'TestModule'
$script:workspacePath = Join-Path -Path $TestDrive -ChildPath 'workspace'
$script:modulePath = Join-Path -Path $script:workspacePath -ChildPath "outputs/module/$script:moduleName"
$script:modulePath = Join-Path -Path $script:workspacePath -ChildPath ".PSModule/module/$script:moduleName"
$manifestPath = Join-Path -Path $script:modulePath -ChildPath "$script:moduleName.psd1"
$eventPath = Join-Path -Path $TestDrive -ChildPath 'event.json'
$null = New-Item -Path $script:modulePath -ItemType Directory -Force
Expand All @@ -68,7 +68,7 @@ Describe 'Publish-PSModule recovery' {
$env:GITHUB_REPOSITORY = "PSModule/$script:moduleName"
$env:GITHUB_WORKSPACE = $script:workspacePath
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_Name = $script:moduleName
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_ModulePath = 'outputs/module'
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_ModulePath = '.PSModule/module'
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_PSGALLERY_API_KEY = 'test-key'
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_PullRequest = ''
$env:PSMODULE_PUBLISH_PSMODULE_INPUT_WhatIf = 'false'
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/Release-PSModule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Creates or resumes a GitHub release for a pre-versioned PowerShell module artifa
| Name | Description | Required | Default |
| --- | --- | --- | --- |
| `Name` | Name of the module to release. | No | Repository name |
| `ModulePath` | Path containing the built `<Name>/` module directory. | No | `outputs/module` |
| `ModulePath` | Path containing the built `<Name>/` module directory. | No | `.PSModule/module` |
| `ArtifactName` | Name of the module artifact to download. | No | `module` |
| `ReleaseTag` | Full GitHub release tag resolved by `Resolve-PSModuleVersion`. | Yes | N/A |
| `WhatIf` | Logs release operations without creating or uploading anything. | No | `false` |
Expand All @@ -33,7 +33,7 @@ Pass the Plan job's resolved `FullVersion` as `ReleaseTag` so the configured tag
uses: ./.github/actions/Release-PSModule
with:
Name: ExampleModule
ModulePath: outputs/module
ModulePath: .PSModule/module
ArtifactName: module
ReleaseTag: ${{ fromJson(inputs.Settings).Publish.Module.Resolution.FullVersion }}
```
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Release-PSModule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
ModulePath:
description: Path to the folder containing the <Name>/ module subdirectory from Build-PSModule.
required: false
default: outputs/module
default: .PSModule/module
ArtifactName:
description: Name of the uploaded artifact to download. Must match the name used in the upstream upload-artifact step.
required: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Describe 'Release-PSModule WhatIf' {
BeforeEach {
$script:moduleName = 'TestModule'
$script:workspacePath = Join-Path -Path $TestDrive -ChildPath 'workspace'
$script:modulePath = Join-Path -Path $script:workspacePath -ChildPath "outputs/module/$script:moduleName"
$script:modulePath = Join-Path -Path $script:workspacePath -ChildPath ".PSModule/module/$script:moduleName"
$manifestPath = Join-Path -Path $script:modulePath -ChildPath "$script:moduleName.psd1"
$eventPath = Join-Path -Path $TestDrive -ChildPath 'event.json'
$script:githubOutputPath = Join-Path -Path $TestDrive -ChildPath 'github-output'
Expand Down Expand Up @@ -89,7 +89,7 @@ Describe 'Release-PSModule WhatIf' {
$env:GITHUB_WORKSPACE = $script:workspacePath
$env:RELEASE_ACTION_GH_CALL_LOG = $script:ghCallLogPath
$env:PSMODULE_RELEASE_PSMODULE_INPUT_Name = $script:moduleName
$env:PSMODULE_RELEASE_PSMODULE_INPUT_ModulePath = 'outputs/module'
$env:PSMODULE_RELEASE_PSMODULE_INPUT_ModulePath = '.PSModule/module'
$env:PSMODULE_RELEASE_PSMODULE_INPUT_WhatIf = 'true'
$env:PSMODULE_RELEASE_PSMODULE_INPUT_UsePRBodyAsReleaseNotes = 'true'
$env:PSMODULE_RELEASE_PSMODULE_INPUT_UsePRTitleAsReleaseName = 'false'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Structure-Site/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Structure-Site

Prepares site content and writes a resolved Zensical config file under `outputs/site`.
Prepares site content and writes a resolved Zensical config file under `.PSModule/site`.

## Inputs

Expand Down
8 changes: 4 additions & 4 deletions .github/actions/Structure-Site/src/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Structures generated documentation content and writes a resolved site config.

.DESCRIPTION
Copies generated docs, README, and assets into outputs/site and resolves zensical.toml
Copies generated docs, README, and assets into .PSModule/site and resolves zensical.toml
placeholders and site_dir for build execution.

.EXAMPLE
Expand All @@ -19,7 +19,7 @@
#>
[CmdletBinding()]
param(
# Build working directory where src/, README.md, and outputs/ exist.
# Build working directory where src/, README.md, and .PSModule/ exist.
[Parameter(Mandatory)]
[string]$WorkingDirectory,

Expand All @@ -31,8 +31,8 @@ param(
$ErrorActionPreference = 'Stop'

$resolvedWorkingDirectory = Resolve-Path -Path $WorkingDirectory | Select-Object -ExpandProperty Path
$siteOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/site'
$docsOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/docs'
$siteOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/site'
$docsOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/docs'
$moduleSourcePath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'src'
$moduleName = if ([string]::IsNullOrEmpty($Name)) { $env:GITHUB_REPOSITORY_NAME } else { $Name }

Expand Down
4 changes: 2 additions & 2 deletions .github/actions/Structure-Site/src/structure-site.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ param(
$ErrorActionPreference = 'Stop'

$resolvedWorkingDirectory = Resolve-Path -Path $WorkingDirectory | Select-Object -ExpandProperty Path
$siteOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/site'
$docsOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'outputs/docs'
$siteOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/site'
$docsOutputPath = Join-Path -Path $resolvedWorkingDirectory -ChildPath '.PSModule/docs'
$moduleSourcePath = Join-Path -Path $resolvedWorkingDirectory -ChildPath 'src'
$moduleName = if ([string]::IsNullOrEmpty($Name)) { $env:GITHUB_REPOSITORY_NAME } else { $Name }

Expand Down
6 changes: 3 additions & 3 deletions .github/actions/Test-PSModule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ runs:
run: ${{ github.action_path }}/src/main.ps1

- name: Invoke-Pester
uses: PSModule/Invoke-Pester@4ff33199141fdf22568990b6107fe3148ae93a1c # v5.1.0
uses: PSModule/Invoke-Pester@c5494aba3c07d7bfd81bdbbc9f301e8fa4a729fb # v5.1.1
Comment thread
MariusStorhaug marked this conversation as resolved.
id: test
env:
LocalTestPath: ${{ steps.paths.outputs.LocalTestPath }}
Expand Down Expand Up @@ -312,7 +312,7 @@ runs:
Filter_FullName: ${{ inputs.Filter_FullName }}
CodeCoverage_Enabled: ${{ inputs.CodeCoverage_Enabled }}
CodeCoverage_OutputFormat: ${{ inputs.CodeCoverage_OutputFormat }}
CodeCoverage_OutputPath: ${{ inputs.CodeCoverage_OutputPath }}
CodeCoverage_OutputPath: ${{ inputs.CodeCoverage_OutputPath || format('.PSModule/CodeCoverage/PSModuleTest-{0}-{1}-CodeCoverage-Report.xml', inputs.Settings, runner.os) }}
CodeCoverage_OutputEncoding: ${{ inputs.CodeCoverage_OutputEncoding }}
CodeCoverage_Path: ${{ inputs.CodeCoverage_Path }}
CodeCoverage_ExcludeTests: ${{ inputs.CodeCoverage_ExcludeTests }}
Expand All @@ -322,7 +322,7 @@ runs:
CodeCoverage_SingleHitBreakpoints: ${{ inputs.CodeCoverage_SingleHitBreakpoints }}
TestResult_Enabled: ${{ inputs.TestResult_Enabled }}
TestResult_OutputFormat: ${{ inputs.TestResult_OutputFormat }}
TestResult_OutputPath: ${{ inputs.TestResult_OutputPath }}
TestResult_OutputPath: ${{ inputs.TestResult_OutputPath || format('.PSModule/TestResult/PSModuleTest-{0}-{1}-TestResult-Report.xml', inputs.Settings, runner.os) }}
TestResult_OutputEncoding: ${{ inputs.TestResult_OutputEncoding }}
TestResult_TestSuiteName: PSModuleTest-${{ inputs.Settings }}-${{ runner.os }}
Should_ErrorAction: ${{ inputs.Should_ErrorAction }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Test-PSModule/src/main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $testPath = Resolve-Path -Path "$PSScriptRoot/tests/$settings" | Select-Object -
$localTestPath = Resolve-Path -Path 'tests' | Select-Object -ExpandProperty Path
switch ($settings) {
'Module' {
$modulePath = Resolve-Path -Path "outputs/module/$moduleName" | Select-Object -ExpandProperty Path
$modulePath = Resolve-Path -Path ".PSModule/module/$moduleName" | Select-Object -ExpandProperty Path
$codePath = Install-PSModule -Path $modulePath -PassThru
}
'SourceCode' {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ For every consumer repository, trace and record these surfaces before editing:
| Surface | Framework contract to verify | Migration check |
| --- | --- | --- |
| `PSModule/Invoke-Pester` | Installs/runs Pester and emits per-suite JSON results and coverage artifacts | Pin/verify Pester 6.1.0, map all inputs to v6 configuration, preserve suite names |
| `Test-PSModule` action | Selects `tests/Module` or `tests/SourceCode`, resolves `outputs/module` or `src`, and passes paths to `Invoke-Pester` | Confirm path selection, exclusions, module state, and test extension |
| `Test-PSModule` action | Selects `tests/Module` or `tests/SourceCode`, resolves `.PSModule/module` or `src`, and passes paths to `Invoke-Pester` | Confirm path selection, exclusions, module state, and test extension |
| Module-local workflow | Downloads the built module, exposes `TestData`, imports the module, then runs module tests | Tests consume the prepared module; no hidden fallback import |
| Source-code workflow | Runs source tests against the checked-out `src` path | Record how source functions/classes are loaded and which fixtures are explicit |
| `BeforeAll-ModuleLocal` | Runs exact root `tests/BeforeAll.ps1` once before module-local jobs | Put shared services/data here only when every matrix job needs them |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Build-Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: module
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/module
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/module

- name: Document module
uses: ./_wf/.github/actions/Document-PSModule
Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: docs
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/docs
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/docs
if-no-files-found: error
retention-days: 1
Comment thread
MariusStorhaug marked this conversation as resolved.

Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
env:
RUN_LOCAL: true
DEFAULT_WORKSPACE: ${{ fromJson(inputs.Settings).WorkingDirectory }}
FILTER_REGEX_INCLUDE: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/docs/.*\.(md|markdown)$
FILTER_REGEX_INCLUDE: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/docs/.*\.(md|markdown)$
ENABLE_GITHUB_ACTIONS_GROUP_TITLE: true
GITHUB_TOKEN: ${{ github.token }}
VALIDATE_ALL_CODEBASE: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Build-Site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: docs
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/outputs/docs
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/docs

- name: Install Zensical
uses: ./_wf/.github/actions/Install-Zensical
Expand All @@ -55,11 +55,11 @@ jobs:
- name: Inject shared site scripts
uses: ./_wf/.github/actions/Inject-SiteScripts
with:
SitePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/_site
SitePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/site/_site
WorkflowPath: _wf

- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
name: github-pages
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/_site
path: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/site/_site
retention-days: 1
4 changes: 2 additions & 2 deletions .github/workflows/Publish-Module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
GH_TOKEN: ${{ steps.App-Token.outputs.token }}
with:
Name: ${{ fromJson(inputs.Settings).Name }}
ModulePath: outputs/module
ModulePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/module
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
PullRequest: ${{ toJson(fromJson(inputs.Settings).Context.PullRequest) }}
WhatIf: ${{ github.repository == 'PSModule/Process-PSModule' }}
Expand All @@ -77,7 +77,7 @@ jobs:
GH_TOKEN: ${{ steps.App-Token.outputs.token }}
with:
Name: ${{ fromJson(inputs.Settings).Name }}
ModulePath: outputs/module
ModulePath: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule/module
ArtifactName: module
WhatIf: ${{ github.repository == 'PSModule/Process-PSModule' }}
UsePRTitleAsReleaseName: ${{ fromJson(inputs.Settings).Publish.Module.UsePRTitleAsReleaseName }}
Expand Down
Loading
Loading