Skip to content

Commit c0829ff

Browse files
committed
split the CD for Open VSX and VSCode Marketplace
1 parent 8292e9c commit c0829ff

2 files changed

Lines changed: 45 additions & 9 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CD Pipeline - Open VSX Registry
2+
3+
on:
4+
push:
5+
tag:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
workflow_dispatch:
8+
ref: master
9+
10+
jobs:
11+
publish:
12+
name: Build, Test And Publish
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
environment: Production
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup Build Environment
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
24+
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
25+
sleep 3
26+
27+
- name: Setup Node.js environment
28+
uses: actions/setup-node@v2
29+
with:
30+
node-version: 12
31+
32+
- name: Install Node.js modules
33+
run: npm ci
34+
35+
- name: Compile
36+
run: npm run compile
37+
38+
- name: Publish to Open VSX Registry
39+
uses: haaleo/publish-vscode-extension@v1
40+
id: publishToOpenVSX
41+
env:
42+
DISPLAY: ':99'
43+
with:
44+
pat: ${{ secrets.OPEN_VSX_TOKEN }}

.github/workflows/cd.yml renamed to .github/workflows/cd-vscode-marketplace.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CD Pipeline
1+
name: CD Pipeline - Visual Studio Marketplace
22

33
on:
44
push:
@@ -35,14 +35,6 @@ jobs:
3535
- name: Compile
3636
run: npm run compile
3737

38-
- name: Publish to Open VSX Registry
39-
uses: haaleo/publish-vscode-extension@v1
40-
id: publishToOpenVSX
41-
env:
42-
DISPLAY: ':99'
43-
with:
44-
pat: ${{ secrets.OPEN_VSX_TOKEN }}
45-
4638
- name: Publish to Visual Studio Marketplace
4739
uses: HaaLeo/publish-vscode-extension@v1
4840
with:

0 commit comments

Comments
 (0)