-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.32 KB
/
vs-code-extensions.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
name: Build and Publish VS Code Extension Package
on:
workflow_dispatch:
jobs:
build-vscode-extension-package:
name: Java Extensions
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Install Carvel tools
shell: bash
run: curl -L https://carvel.dev/install.sh | bash
- name: Install code-server
shell: bash
run: |
curl --fail -L -o code-server.tar.gz https://github.com/coder/code-server/releases/download/v4.12.0/code-server-4.12.0-linux-amd64.tar.gz
mkdir code-server
tar -C code-server --strip-components 1 -xvf code-server.tar.gz
- name: Install VS Code extensions
shell: bash
run: |
./code-server/bin/code-server --install-extension [email protected]
rm -f $HOME/.local/share/code-server/extensions/extensions.json
- name: Publish VS Code extensions as files
shell: bash
run: |
REPOSITORY_OWNER=${{github.repository_owner}}
imgpkg push \
-i ghcr.io/${REPOSITORY_OWNER,,}/vscode-java-extensions-files:latest \
-f $HOME/.local/share/code-server/extensions \
--registry-username=${{github.actor}} \
--registry-password=${{secrets.GITHUB_TOKEN}}