Skip to content

Commit 4df64b4

Browse files
committed
add deployment workflow
1 parent 795fbab commit 4df64b4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/cd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
workflow_run:
3+
workflows: ["Markup parsing tests"]
4+
branches: [main]
5+
types:
6+
- completed
7+
push:
8+
tags:
9+
- "*"
10+
# https://stackoverflow.com/questions/58457140/dependencies-between-workflows-on-github-actions
11+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_run
12+
# https://github.com/actions/create-release
13+
14+
jobs:
15+
publish:
16+
name: Publish Extension
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Install Node.js
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: 14.x
25+
- name: Install Dependencies
26+
run: npm ci
27+
# - name: Package Extension
28+
# run: npm run package
29+
- name: Publish to Visual Studio Marketplace
30+
run: ./node_modules/.bin/vsce publish -p ${{ secrets.VSCE_PAT }}
31+
- name: Publish to Open VSX Registry
32+
run: ./node_modules/.bin/ovsx publish -p ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)