Skip to content

Commit 0ae4365

Browse files
committed
🤖 feat: add VS Code extension to release workflow
Add build-vscode-extension job to release workflow that: - Builds the VS Code extension (make vscode-ext) - Uploads .vsix file to GitHub Releases - Runs in parallel with macOS/Linux builds The extension will now be available for download from GitHub Releases alongside the DMG and AppImage files. _Generated with `cmux`_
1 parent 459af84 commit 0ae4365

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,25 @@ jobs:
5858
run: bun x electron-builder --linux --publish always
5959
env:
6060
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
62+
build-vscode-extension:
63+
name: Build and Release VS Code Extension
64+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
65+
steps:
66+
- name: Checkout code
67+
uses: actions/checkout@v4
68+
with:
69+
fetch-depth: 0 # Required for git describe to find tags
70+
71+
- uses: ./.github/actions/setup-cmux
72+
73+
- name: Build VS Code extension
74+
run: make vscode-ext
75+
76+
- name: Upload VS Code extension to release
77+
env:
78+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
run: |
80+
gh release upload ${{ github.event.release.tag_name }} \
81+
vscode/cmux-*.vsix \
82+
--clobber

0 commit comments

Comments
 (0)