Skip to content

Commit 913619e

Browse files
committed
Try fixing publish by calling it all again.
1 parent 06fa330 commit 913619e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

build.build.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ param(
1515
)]
1616
$Extends
1717
)
18+
Write-Information "$($PSStyle.Foreground.BrightMagenta)build.build.ps1$($PSStyle.Reset)"
1819

1920
## Self-contained build script - can be invoked directly or via Invoke-Build
2021
if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
@@ -27,6 +28,8 @@ if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
2728
exit 0
2829
}
2930

31+
Write-Information "$($PSStyle.Foreground.BrightMagenta)Define Tasks$($PSStyle.Reset)"
32+
3033
# Define your preferred default build for local dev:
3134
Add-BuildTask . Initialize, Build, Test
3235

build.earth

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ test:
5959

6060
# publish runs publish and push tasks if the tests pass and --push was specified.
6161
# It needs the API keys to be passed in as secrets
62-
publish:
62+
all:
6363
# If we only reference with FROM (or COPY) the outputs will not be produced
6464
BUILD +test
6565
FROM +build
66-
RUN --push --secret NUGET_API_KEY --secret PSGALLERY_API_KEY -- \
67-
pwsh -File "${IB_TASK_ROOT}/scripts/Invoke-Build.ps1" Publish, Push -Verbose
66+
RUN --push --secret NUGET_API_KEY --secret PSGALLERY_API_KEY \
67+
-- pwsh -File "${IB_TASK_ROOT}/scripts/Invoke-Build.ps1" Push -Verbose

0 commit comments

Comments
 (0)