-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (29 loc) · 1.01 KB
/
release.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: "Release"
on:
release:
types: [published]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: "Get release"
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.BASIC_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ steps.get_release.outputs.tag_name }}
- name: "Setup environment"
uses: ./.github/actions/setup-env
- name: "Build and Pack"
run: yarn build:prod && yarn pack:extension
- name: "Publish :: VS Code Marketplace"
run: |
npm install -g @vscode/vsce
vsce publish -p ${{ secrets.VSCODE_MP_TOKEN }} --packagePath ./dist/vscode_diff_viewer_${{ steps.get_release.outputs.tag_name }}.vsix
- name: "Publish :: Open VSX Registry"
run: |
npm install -g ovsx
ovsx publish -p ${{ secrets.OPEN_VSX_TOKEN }} ./dist/vscode_diff_viewer_${{ steps.get_release.outputs.tag_name }}.vsix