Skip to content

Commit

Permalink
Split out packaging action
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed May 8, 2024
1 parent 5769ee2 commit ba9a697
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
## make sure this corresponds with the version in release.yml
node-version: latest


- run: yarn install --immutable --immutable-cache --check-cache

- name: Package extension
if: runner.os == 'Linux'
run: npx vsce package
- name: Upload extension vsix to workflow artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: haskell-${{ github.sha }}.vsix
path: haskell-*.vsix
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,3 @@ jobs:
rm -rf test-workspace
rm -rf out
shell: bash

- name: Package tested extension
if: runner.os == 'Linux'
run: npx vsce package
- name: Upload extension vsix to workflow artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: haskell-${{ github.sha }}.vsix
path: haskell-*.vsix

0 comments on commit ba9a697

Please sign in to comment.