Skip to content

Commit 8bcd128

Browse files
committed
github actions upload artifact
1 parent fc5711a commit 8bcd128

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: [push]
3+
on: [push,release]
44

55
jobs:
66
build:
@@ -25,5 +25,13 @@ jobs:
2525
- run: npm run test
2626
env:
2727
DISPLAY: :10
28-
- run: npm run package
28+
- name: Build package
2929
if: runner.os == 'Linux'
30+
run: |
31+
mkdir dist
32+
./node_modules/.bin/vsce package -o ./dist/$(jq -r '.name + "-" + .version' package.json).vsix
33+
- uses: actions/upload-artifact@master
34+
if: runner.os == 'Linux'
35+
with:
36+
name: vscode-objectscript
37+
path: dist

0 commit comments

Comments
 (0)