-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1003 Bytes
/
publish.yaml
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
name: Publish and release extension
on:
push:
tags:
- v**
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Install extension dependencies
run: npm ci
- name: Package extension
run: npx -p @vscode/vsce --yes -c 'vsce package'
- name: Publish on Visual Studio Marketplace
run: npx -p @vscode/vsce --yes -c 'vsce publish -i *.vsix'
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish on Eclipse Open VSX
run: npx -p ovsx --yes -c 'ovsx publish *.vsix'
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
- name: Create release on GitHub
uses: softprops/action-gh-release@v1
with:
files: '*.vsix'
body: See [CHANGELOG.md](https://github.com/deimonn/code-re2c/blob/master/CHANGELOG.md) for a list of additions, changes and fixes.