Skip to content

Commit 9414858

Browse files
committed
feat: add workflow for building asset
1 parent 78c8808 commit 9414858

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.github/workflows/package.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: Build Extension
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
- run: npm install
12+
- run: npm install --global vsce
13+
- run: vsce package --out coder.vsix
14+
- uses: actions/upload-artifact@v2
15+
with:
16+
name: coder.vsix
17+
path: ./coder.vsix

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"publisher": "coder",
44
"displayName": "Coder",
55
"description": "Connect VS Code to your Coder Workspaces",
6+
"repository": "https://github.com/cdr/vscode-coder",
67
"version": "0.0.1",
78
"engines": {
89
"vscode": "^1.54.0"

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export function activate(context: vscode.ExtensionContext) {
1313
});
1414
vscode.commands.registerCommand("coderWorkspaces.rebuildWorkspace", (ws: CoderWorkspace) => {
1515
const { name } = ws.workspace;
16-
rebuildWorkspace(name);
16+
rebuildWorkspace(name).then(() => workspaceProvider.refresh());
1717
});
1818

19-
vscode.commands.registerCommand("coderWorkspaces.refreshWorkspaces", (a, b) => {
19+
vscode.commands.registerCommand("coderWorkspaces.refreshWorkspaces", () => {
2020
workspaceProvider.refresh();
2121
});
2222
}

0 commit comments

Comments
 (0)