Skip to content

Commit

Permalink
ci(vscode): Fix asset upload and publish workingDir during publish
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Mar 11, 2024
1 parent 34978d0 commit 24db8e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vscode/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ open Fun.Build

open Common

let distPath = "vscode/contextive/dist"

let vsCodeAssetFileName (ctx: Internal.StageContext) =
$"contextive-{ctx.GetCmdArg(args.vscePlatform)}-{ctx.GetCmdArg(args.release)}.vsix"

Expand Down Expand Up @@ -122,14 +120,10 @@ pipeline "Contextive VsCode Extension" {
}

stage "Upload Asset" {
workingDir distPath
run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {vsCodeAssetFileName ctx}")
}

stage "Publish to Marketplace" {
workingDir distPath
run (fun ctx -> $"npx vsce publish --packagePath {vsCodeAssetFileName ctx}")
}
stage "Publish to Marketplace" { run (fun ctx -> $"npx vsce publish --packagePath {vsCodeAssetFileName ctx}") }
}

runIfOnlySpecified false
Expand Down

0 comments on commit 24db8e6

Please sign in to comment.