Skip to content

Commit 4bba770

Browse files
vicperdanaCopilot
andcommitted
fix: repair release workflows and docs output path
- Add InvokeBuild module installation to release-psdocs.yml and release-psdocs-azure.yml (was missing, causing 'Invoke-Build not recognized' errors) - Fix build invocation in release workflows: use Invoke-Build Build -File ./pipeline.build.ps1 instead of ./pipeline.build.ps1 -Build (pipeline.build.ps1 is an InvokeBuild script, not directly callable) - Update docs.yaml outputPath from docs/templates/ to docs/psdocs-azure/templates/ to match monorepo directory structure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d26add8 commit 4bba770

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: microsoft/ps-docs@main
3636
with:
3737
modules: PSDocs,PSDocs.Azure
38-
outputPath: docs/templates/
38+
outputPath: docs/psdocs-azure/templates/
3939
prerelease: true
4040

4141
- name: Setup Python

.github/workflows/release-psdocs-azure.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
with:
2020
dotnet-version: '8.0.x'
2121

22+
- name: Setup PowerShell modules
23+
shell: pwsh
24+
run: |
25+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
26+
Install-Module -Name InvokeBuild -MinimumVersion 5.4.0 -Scope CurrentUser -Force
27+
2228
- name: Extract version from tag
2329
id: version
2430
run: |
@@ -29,7 +35,7 @@ jobs:
2935
shell: pwsh
3036
working-directory: packages/psdocs-azure
3137
run: |
32-
./pipeline.build.ps1 -Build
38+
Invoke-Build Build -File ./pipeline.build.ps1
3339
3440
- name: Publish to PSGallery
3541
shell: pwsh

.github/workflows/release-psdocs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
with:
2020
dotnet-version: '8.0.x'
2121

22+
- name: Setup PowerShell modules
23+
shell: pwsh
24+
run: |
25+
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
26+
Install-Module -Name InvokeBuild -MinimumVersion 5.4.0 -Scope CurrentUser -Force
27+
2228
- name: Extract version from tag
2329
id: version
2430
run: |
@@ -29,7 +35,7 @@ jobs:
2935
shell: pwsh
3036
working-directory: packages/psdocs
3137
run: |
32-
./pipeline.build.ps1 -Build
38+
Invoke-Build Build -File ./pipeline.build.ps1
3339
3440
- name: Publish to PSGallery
3541
shell: pwsh

0 commit comments

Comments
 (0)