Skip to content

Commit 09978c5

Browse files
committed
feat: enable auto-build on push and pull request for master branch
1 parent 0bbe430 commit 09978c5

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Build
22

3-
# Auto-build disabled for now. Re-enable by uncommenting push/pull_request below.
43
on:
54
workflow_dispatch:
6-
# push:
7-
# branches:
8-
# - master
9-
# pull_request:
10-
# branches:
11-
# - master
5+
push:
6+
branches:
7+
- master
8+
- "feature/**"
9+
- "feat/**"
10+
pull_request:
11+
branches:
12+
- master
1213

1314
jobs:
1415
build:
@@ -39,5 +40,16 @@ jobs:
3940
- name: Build extension
4041
run: yarn package
4142

42-
- name: Package VSIX (smoke test)
43+
- name: Package VSIX
4344
run: npx @vscode/vsce package --no-dependencies
45+
46+
- name: Get VSIX filename
47+
id: vsix
48+
run: echo "file=$(ls *.vsix)" >> "$GITHUB_OUTPUT"
49+
50+
- name: Upload VSIX artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: ${{ steps.vsix.outputs.file }}
54+
path: ${{ steps.vsix.outputs.file }}
55+
retention-days: 14

0 commit comments

Comments
 (0)