Skip to content

Commit ba9a697

Browse files
committed
Split out packaging action
1 parent 5769ee2 commit ba9a697

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/package.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- '**'
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [macos-latest, ubuntu-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
## make sure this corresponds with the version in release.yml
24+
node-version: latest
25+
26+
27+
- run: yarn install --immutable --immutable-cache --check-cache
28+
29+
- name: Package extension
30+
if: runner.os == 'Linux'
31+
run: npx vsce package
32+
- name: Upload extension vsix to workflow artifacts
33+
if: runner.os == 'Linux'
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: haskell-${{ github.sha }}.vsix
37+
path: haskell-*.vsix

.github/workflows/test.yml

-10
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,3 @@ jobs:
7676
rm -rf test-workspace
7777
rm -rf out
7878
shell: bash
79-
80-
- name: Package tested extension
81-
if: runner.os == 'Linux'
82-
run: npx vsce package
83-
- name: Upload extension vsix to workflow artifacts
84-
if: runner.os == 'Linux'
85-
uses: actions/upload-artifact@v3
86-
with:
87-
name: haskell-${{ github.sha }}.vsix
88-
path: haskell-*.vsix

0 commit comments

Comments
 (0)