Skip to content

Commit

Permalink
ci: fix bugs in publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Mar 11, 2024
1 parent eaf7d08 commit f301129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/contextive-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
matrix-path: .github/release-matrix.yml

publish-per-runtime:
needs: get-matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.get-matrix.outputs.matrix) }}
Expand Down
6 changes: 3 additions & 3 deletions src/intellij/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open Fun.Build

open Common

let distPath: string = "intellij/contextive/build/distribution"
let distPath: string = "intellij/contextive/build/distributions"

let intelliJAssetFileName (ctx: Internal.StageContext) =
$"contextive-{ctx.GetCmdArg(args.release)}-signed.zip"
Expand All @@ -22,14 +22,14 @@ pipeline "Contextive IntelliJ Plugin" {
workingDir "intellij/contextive"
whenCmdArg args.release

stage "Sign Plugin" { run "./gradlew signPlugin" }
stage "Sign Plugin" { run (bashCmd "./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" }
stage "Publish Package" { run (bashCmd "./gradlew publishPlugin") }
}

runIfOnlySpecified false
Expand Down

0 comments on commit f301129

Please sign in to comment.