Skip to content

Commit 5bd41c1

Browse files
committed
[CI] fix missing windows packages artifacts
1 parent ef66f71 commit 5bd41c1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ jobs:
2626
uses: actions/upload-artifact@v2
2727
with:
2828
name: artifacts-windows
29-
path: |
30-
artifacts/
31-
templates/bin
29+
path: artifacts
3230
- name: Test
3331
run: |
3432
dotnet fake build -t Test

build.fsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ module Solutions =
4040
let windows = "Interstellar.Windows.sln"
4141
let macos = "Interstellar.MacOS.sln"
4242

43+
let artifactsPath = "artifacts"
44+
4345
module Templates =
4446
let path = "templates"
4547

4648
let nuspecPaths = !! (Path.Combine (path, "*.nuspec"))
47-
let outputPath = Path.Combine (path, "bin")
4849
let allProjects =
4950
!! (Path.Combine (path, "**/*.fsproj"))
5051
let winProjects =
@@ -133,7 +134,7 @@ let getNupkgPath version projPath =
133134
Path.Combine ([|projDir; "bin"; "Release";
134135
sprintf "%s%s.nupkg" (Path.GetFileNameWithoutExtension projPath) vstr|])
135136

136-
let getNupkgArtifactPath proj = Path.Combine ("artifacts", sprintf "%s.nupkg" (Path.GetFileNameWithoutExtension proj))
137+
let getNupkgArtifactPath proj = Path.Combine (artifactsPath, sprintf "%s.nupkg" (Path.GetFileNameWithoutExtension proj))
137138

138139
Target.create "Clean" (fun _ ->
139140
Trace.log " --- Cleaning --- "
@@ -149,7 +150,7 @@ Target.create "Clean" (fun _ ->
149150
Shell.deleteDir ".fsdocs"
150151
Shell.deleteDir "output"
151152
Shell.deleteDir "temp"
152-
Shell.deleteDir Templates.outputPath
153+
Shell.deleteDir artifactsPath
153154
)
154155

155156
Target.create "Restore" (fun _ ->
@@ -228,13 +229,13 @@ Target.create "BuildTemplateProjects" (fun _ ->
228229

229230
Target.create "PackTemplates" (fun _ ->
230231
Trace.log " --- Packing template packages --- "
231-
Shell.mkdir Templates.outputPath
232+
Shell.mkdir artifactsPath
232233
for nuspecPath in Templates.nuspecPaths do
233234
NuGet.NuGetPack
234235
(fun opt -> {
235236
opt with
236237
WorkingDir = Path.GetDirectoryName nuspecPath
237-
OutputPath = Templates.outputPath
238+
OutputPath = artifactsPath
238239
Version = sprintf "%s.%d" currentVersionInfo.versionName currentTemplateMinorVersion
239240
})
240241
nuspecPath

0 commit comments

Comments
 (0)