-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.46 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
38
39
40
41
42
43
44
45
46
47
# Workflow that publishes the VS Code extension to the VS Marketplace and
# Open VSX, and attaches assets to the new release.
name: publish
on:
workflow_dispatch:
release:
types: [published]
jobs:
distribute:
name: "Distribute VSCode extension"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16.x"
registry-url: 'https://registry.npmjs.org'
scope: '@kieler'
- run: yarn
- run: yarn distribute
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
release-assets:
name: "Add assets to release"
runs-on: ubuntu-latest
# Github has no official action for this. Uses: https://github.com/JasonEtco/upload-to-release
# Uploads each CLI asset separately to create more targeted download options
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16.x"
- run: yarn
- run: yarn package
- name: Upload VSIX
uses: JasonEtco/upload-to-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ./extension/pasta.vsix application/octet-stream