-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (61 loc) · 1.9 KB
/
publish.yml
File metadata and controls
75 lines (61 loc) · 1.9 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Publish Extension
on:
workflow_dispatch:
inputs:
publish_vscode_marketplace:
description: 'Publish to VS Marketplace'
type: boolean
default: true
publish_ovsx:
description: 'Publish to Open VSX'
type: boolean
default: true
permissions:
contents: read
jobs:
publish-vscode-marketplace:
name: Publish to VS Marketplace
runs-on: ubuntu-latest
if: ${{ inputs.publish_vscode_marketplace != false }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies
run: npm ci
- name: Set version from branch name
uses: ./.github/actions/set-version
- name: Publish to VS Marketplace
run: make publish-marketplace
env:
VERSION: ${{ env.VERSION }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
NODE_ENV: production
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
publish-ovsx:
name: Publish to Open VSX
runs-on: ubuntu-latest
if: ${{ inputs.publish_ovsx != false }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies
run: npm ci
- name: Set version from branch name
uses: ./.github/actions/set-version
- name: Publish to Open VSX
run: make publish-ovsx
env:
VERSION: ${{ env.VERSION }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
NODE_ENV: production
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events