forked from xlab-si/xopera-saas-vscode-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.1 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish the extension
on:
push:
tags:
- "*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Generate necessary OpenAPI models
run: sh generate-openapi.sh
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install a project with a clean slate
run: npm ci
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
packagePath: ''
- name: Upload VSIX artifact
uses: actions/upload-artifact@v2
with:
name: xopera-saas-plugin.vsix
path: ${{ steps.publishToOpenVSX.outputs.vsixPath }}