-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(intellij): add support to publish to the intellij marketplace when…
… a new plugin version is available
- Loading branch information
1 parent
549a992
commit 71027ed
Showing
5 changed files
with
97 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"Intelli", | ||
"intellij", | ||
"ionide", | ||
"JETBRAINS", | ||
"MADR", | ||
"paket", | ||
"parens", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#r "nuget: Fun.Build, 1.0.5" | ||
#load "../ci/common.fsx" | ||
|
||
open Fun.Build | ||
|
||
open Common | ||
|
||
let distPath: string = "intellij/contextive/build/distribution" | ||
|
||
let intelliJAssetFileName (ctx: Internal.StageContext) = | ||
$"contextive-{ctx.GetCmdArg(args.release)}-signed.zip" | ||
|
||
pipeline "Contextive IntelliJ Plugin" { | ||
description "Build & Test" | ||
noPrefixForStep | ||
runBeforeEachStage gitHubGroupStart | ||
runAfterEachStage gitHubGroupEnd | ||
|
||
logEnvironment | ||
|
||
stage "Publish" { | ||
workingDir "intellij/contextive" | ||
whenCmdArg args.release | ||
|
||
stage "Sign Plugin" { run "./gradlew signPlugin" } | ||
|
||
stage "Upload Asset" { | ||
workingDir distPath | ||
run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {intelliJAssetFileName ctx}") | ||
} | ||
|
||
stage "Publish Package" { run "./gradlew publishPlugin" } | ||
} | ||
|
||
runIfOnlySpecified false | ||
} | ||
|
||
tryPrintPipelineCommandHelp () |