Skip to content

Commit 2107e48

Browse files
authored
switch around github workflows for publishing (#164)
1 parent 4a3bfc7 commit 2107e48

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

.github/workflows/branch-pr-release.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
pull_request:
66
branches:
77
- master
8-
release:
9-
types:
10-
- created
118
jobs:
129
build:
1310
strategy:
@@ -34,12 +31,7 @@ jobs:
3431
pip install cfn-lint
3532
pip install pydot
3633
- run: npm run lint
37-
if: runner.os != 'Linux'
3834
- run: xvfb-run -a npm run test
3935
if: runner.os == 'Linux'
40-
- name: Publish
41-
if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
42-
run: vsce publish
43-
env:
44-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
45-
36+
- run: npm run test
37+
if: runner.os != 'Linux'

.github/workflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Upload package to VSCode Marketplace
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 10.x
17+
- name: Setup NPM
18+
run: |
19+
npm install
20+
npm run compile
21+
- name: Publish
22+
if: success()
23+
run: vsce publish
24+
env:
25+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)