Skip to content

Commit 9216b14

Browse files
authored
[publish] v1.0.1
1 parent 127b0f5 commit 9216b14

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish_extension.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,25 @@ on:
88
push:
99
tags:
1010
- '*'
11+
branches:
12+
- master
1113

1214
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1315
jobs:
1416
# This workflow contains a single job called "build"
1517
build:
1618
# The type of runner that the job will run on
1719
runs-on: ubuntu-latest
20+
if: "!contains(github.event.head_commit.message, '[publish]')"
1821

1922
# Steps represent a sequence of tasks that will be executed as part of the job
2023
steps:
2124
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2225
- uses: actions/checkout@v2
2326

24-
- name: vsce publish
25-
uses: sigma/[email protected]
27+
- name: Vscode release plugin
28+
uses: JCofman/[email protected]
29+
env:
30+
PUBLISHER_TOKEN: ${{ secrets.VSCE_TOKEN }}
2631
with:
27-
# vsce token
28-
vsce_token: ${{ secrets.VSCE_TOKEN }}
32+
args: publish -p $VSCE_TOKEN

0 commit comments

Comments
 (0)