Skip to content

Commit

Permalink
build: update action to use manual trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiechen committed May 5, 2024
1 parent c188f74 commit 4df9996
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@ on:
push:
branches:
- main
tags:
- v*
release:
types:
- created
# tags:
# - v*
# release:
# types:
# - created
workflow_dispatch:
inputs:
publish_vse:
type: boolean
default: false
description: publish to marketplace
publish_github:
type: boolean
default: false
description: publish to GitHub release

jobs:
build:
Expand All @@ -26,8 +36,8 @@ jobs:
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
- name: Publish to marketplace
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && ${{ inputs.publish_vse }}
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit 4df9996

Please sign in to comment.