-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (37 loc) · 969 Bytes
/
build.yaml
File metadata and controls
47 lines (37 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build extension
on:
push:
branches:
- main
workflow_call:
inputs:
ref:
type: string
required: false
jobs:
build:
name: Build extension
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
shell: bash
outputs:
artifact-id: ${{ steps.upload.outputs.artifact-id }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ inputs.ref || github.sha }}
- uses: ./.github/actions/setup
- name: Bundle TypeScript
run: npm run bundle
- name: Package extension
run: npm run package
- name: Upload extension as artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
id: upload
with:
name: extension-${{ github.sha }}
path: ./out/vscode-mojo.vsix
retention-days: 14