Skip to content

Commit e9190bb

Browse files
committed
Set up release script
1 parent 40726d7 commit e9190bb

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/maven.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ name: Java CI with Maven
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches:
9+
- release
10+
- master
911
pull_request:
10-
branches: [ "master" ]
12+
branches:
13+
- master
1114

1215
jobs:
1316
build:
@@ -42,4 +45,7 @@ jobs:
4245
uses: actions/upload-artifact@v3
4346
with:
4447
name: vscode-extension
45-
path: build.vsix
48+
path: build.vsix
49+
- name: Publish extension in VSCode marketplace
50+
if: github.ref == 'refs/heads/release'
51+
run: vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath build.vsix

‎TODOS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
## Optimizations
2525
- Compilation is very slow in the presence of lots of errors
2626
- Use package graph to limit search for find-usages/goto-def
27+
- Package separately for windows, mac, linux (see https://github.com/rust-lang/rust-analyzer/blob/master/.github/workflows/release.yaml)
2728

2829
# Features
2930
- Autocomplete new method name based on "no such method" errors.

‎scripts/release.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm version patch
2+
git tag release

0 commit comments

Comments
 (0)