Skip to content

Commit

Permalink
add workflow to build vs code extension package
Browse files Browse the repository at this point in the history
  • Loading branch information
billkable committed Oct 17, 2023
1 parent 7de98df commit 50c73c7
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/vs-code-extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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}}

0 comments on commit 50c73c7

Please sign in to comment.