Skip to content

Commit

Permalink
Merge pull request #3777 from continuedev/nate/vscode-build-button
Browse files Browse the repository at this point in the history
kick off build without publish (vscode)
  • Loading branch information
sestinj authored Jan 20, 2025
2 parents 2262c8c + f06f860 commit 8e7a325
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
release:
types: [released]

workflow_dispatch:
inputs:
publish_build:
description: "Whether or not to publish the built extension to the VS Code marketplace"
required: true
default: false

jobs:
check_release_name:
runs-on: ubuntu-latest
Expand All @@ -21,7 +28,7 @@ jobs:
build:
needs: check_release_name
if: needs.check_release_name.outputs.should_run == 'true'
if: needs.check_release_name.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
include:
Expand Down Expand Up @@ -201,6 +208,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
if: github.event.inputs.publish_build == 'true'
permissions:
contents: write
steps:
Expand Down

0 comments on commit 8e7a325

Please sign in to comment.