Skip to content

Commit

Permalink
ci: temporary tweaks to allow manually rpublishing vscode extension v…
Browse files Browse the repository at this point in the history
…1.11.0
  • Loading branch information
chrissimon-au committed Mar 11, 2024
1 parent 2dd24b9 commit 34978d0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/contextive-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: Contextive Publish
on:
release:
types: [published]
workflow_dispatch:
inputs:
release:
description: 'Release to publish'
required: true
type: string
# temporary removal to allow repair of v1.11.0 vscode extension publishing
# release:
# types: [published]


env:
dotnet-version: '7.0.x'
Expand All @@ -19,6 +27,7 @@ jobs:
matrix: ${{ fromJSON(needs.get-matrix.outputs.matrix) }}
uses: ./.github/workflows/contextive-runtime-publish.yml
with:
release: ${{ inputs.release }} #${{ github.ref_name }} # temporary removal to allow repair of v1.11.0 vscode extension publishing
dotnet_runtime: ${{ matrix.dotnet_runtime }}
os: ${{ matrix.os }}
vsce_platform: ${{ matrix.vsce_platform }}
Expand All @@ -43,7 +52,7 @@ jobs:

- name: Build
id: build
run: dotnet fsi intellij/build.fsx -- --release ${{ github.ref_name }}
run: dotnet fsi intellij/build.fsx -- --release ${{ inputs.release }} #${{ github.ref_name }} # temporary removal to allow repair of v1.11.0 vscode extension publishing
working-directory: src
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/contextive-runtime-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Contextive per Runtime Publish
on:
workflow_call:
inputs:
release:
required: true
type: string
dotnet_runtime:
required: true
type: string
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:

- name: Build
id: build
run: dotnet fsi language-server/build.fsx -- -r ${{ inputs.dotnet_runtime }} --release ${{ github.ref_name }}
run: dotnet fsi language-server/build.fsx -- -r ${{ inputs.dotnet_runtime }} --release ${{ inputs.release }}
working-directory: src
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -61,7 +64,7 @@ jobs:

- name: Build
id: build
run: dotnet fsi vscode/build.fsx -- -r ${{ inputs.dotnet_runtime }} --release ${{ github.ref_name }} --vsce-platform ${{ inputs.vsce_platform }}
run: dotnet fsi vscode/build.fsx -- -r ${{ inputs.dotnet_runtime }} --release ${{ inputs.release }} --vsce-platform ${{ inputs.vsce_platform }}
working-directory: src
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
12 changes: 10 additions & 2 deletions src/intellij/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,18 @@ pipeline "Contextive IntelliJ Plugin" {
stage "Upload Asset" {
workingDir distPath

run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {intelliJAssetFileName ctx}")
echo
"Skipping upload, as it was uploaded on https://github.com/dev-cycles/contextive/actions/runs/8232357150"

// run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {intelliJAssetFileName ctx}")
}

stage "Publish Package" { run (bashCmd "./gradlew publishPlugin") }
stage "Publish Package" {
echo
"Skipping publish, as it was published on https://github.com/dev-cycles/contextive/actions/runs/8232357150"

//run (bashCmd "./gradlew publishPlugin")
}
}

runIfOnlySpecified false
Expand Down
5 changes: 3 additions & 2 deletions src/language-server/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ let zipAndUploadAsset app =

stage "Upload" {
workingDir app.Path

whenCmdArg args.release

run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {appZipPath app ctx}")
echo
"Skipping upload, as it was uploaded on https://github.com/dev-cycles/contextive/actions/runs/8232357150"
//run (fun ctx -> $"gh release upload {ctx.GetCmdArg(args.release)} {appZipPath app ctx}")
}
}
}
Expand Down

0 comments on commit 34978d0

Please sign in to comment.