Skip to content

Commit 00fd1f4

Browse files
rcosta358codex
andcommitted
Publish the extension artifact produced by checks
Co-authored-by: Codex <noreply@openai.com>
1 parent 0a11108 commit 00fd1f4

2 files changed

Lines changed: 10 additions & 26 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
20-
- name: Setup Java
21-
uses: actions/setup-java@v4
17+
- name: Download checked extension
18+
uses: actions/download-artifact@v4
2219
with:
23-
java-version: 21
24-
distribution: temurin
20+
name: liquid-java-vsix
2521

2622
- name: Setup Node.js
2723
uses: actions/setup-node@v4
2824
with:
2925
node-version: 22
3026

31-
- name: Build Server JAR
32-
working-directory: ./server
33-
run: |
34-
mvn -B -ntp clean package -DskipTests
35-
mkdir -p ../client/server
36-
cp target/language-server-liquidjava.jar ../client/server/
37-
38-
- name: Install dependencies and build
39-
working-directory: ./client
40-
run: |
41-
npm install
42-
npm run package
43-
4427
- name: Install vsce
4528
run: npm install -g @vscode/vsce
4629

47-
- name: Package extension
48-
working-directory: ./client
49-
run: vsce package --no-dependencies --out liquid-java.vsix
50-
5130
- name: Publish to VS Code Marketplace
52-
working-directory: ./client
5331
run: vsce publish --packagePath liquid-java.vsix -p ${{ secrets.VSCE_TOKEN }}
5432

5533
- name: Publish to Open VSX Marketplace
56-
working-directory: ./client
5734
run: npx ovsx publish liquid-java.vsix --pat ${{ secrets.OVSX_TOKEN }}

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,10 @@ jobs:
6363
unzip -Z1 liquid-java.vsix > /tmp/liquid-java-vsix-files.txt
6464
grep -Fx 'extension/dist/server/language-server-liquidjava.jar' /tmp/liquid-java-vsix-files.txt
6565
grep -Fx 'extension/media/webview.js' /tmp/liquid-java-vsix-files.txt
66+
67+
- name: Upload checked extension
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: liquid-java-vsix
71+
path: client/liquid-java.vsix
72+
if-no-files-found: error

0 commit comments

Comments
 (0)