Skip to content

Commit 0a1d40c

Browse files
Upload VSIX packages as artifacts (#23)
1 parent e79a635 commit 0a1d40c

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/push.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ${{ matrix.os }}
1212

1313
strategy:
@@ -55,31 +55,29 @@ jobs:
5555
DATABRICKS_CLUSTER_ID: ${{ secrets.DATABRICKS_CLUSTER_ID }}
5656

5757
package:
58-
runs-on: ${{matrix.os}}
59-
60-
strategy:
61-
matrix:
62-
os: [windows-latest, macos-latest]
63-
node-version: [14.x]
64-
58+
name: Package VSIX
59+
runs-on: "macos-latest"
6560
steps:
6661
- uses: actions/checkout@v3
6762

68-
- name: Use Node.js ${{ matrix.node-version }}
63+
- name: Use Node.js 14.x
6964
uses: actions/setup-node@v3
7065
with:
71-
node-version: ${{ matrix.node-version }}
66+
node-version: 14.x
7267
cache: "yarn"
7368

7469
- run: yarn install --immutable
7570

7671
- name: Building packages
7772
run: yarn run build
7873

79-
- name: Build VSIX (OSX)
80-
if: matrix.os == 'macos-latest'
81-
run: yarn workspace databricks vscode:package -t darwin-x64 && yarn workspace databricks vscode:package -t darwin-arm64
74+
- run: mkdir -p packages/databricks-vscode/artifacts
8275

83-
- name: Build VSIX (Windows)
84-
if: matrix.os == 'windows-latest'
85-
run: yarn workspace databricks vscode:package
76+
- name: Build VSIX
77+
run: yarn workspace databricks vscode:package -o artifacts
78+
79+
- name: Upload artifacts
80+
uses: actions/upload-artifact@v3
81+
with:
82+
name: VSIX artifacts
83+
path: packages/databricks-vscode/artifacts

0 commit comments

Comments
 (0)