forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (85 loc) · 3.11 KB
/
build-poshi-vscode-extension.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
jobs:
build:
runs-on: ${{matrix.os}}
steps:
- name: set up git for checkout
run: git config --global core.longpaths 260
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 16.x
- env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
npm_config_arch: ${{matrix.npm_config_arch}}
name: install node modules
run: npm install
working-directory: ./modules/test/poshi/poshi-vscode
- name: set target
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
shell: pwsh
- name: build package
run: npx vsce package --target ${{env.target}}
working-directory: ./modules/test/poshi/poshi-vscode
- uses: actions/[email protected]
with:
name: ${{env.target}}
path: "./modules/test/poshi/poshi-vscode/*.vsix"
strategy:
matrix:
include:
- arch: x64
npm_config_arch: x64
os: windows-latest
platform: win32
- arch: arm64
npm_config_arch: arm
os: windows-latest
platform: win32
- arch: x64
npm_config_arch: x64
os: ubuntu-latest
platform: linux
- arch: arm64
npm_config_arch: arm64
os: ubuntu-latest
platform: linux
- arch: armhf
npm_config_arch: arm
os: ubuntu-latest
platform: linux
- arch: x64
npm_config_arch: x64
os: ubuntu-latest
platform: alpine
- arch: arm64
npm_config_arch: arm64
os: ubuntu-latest
platform: alpine
- arch: x64
npm_config_arch: x64
os: macos-latest
platform: darwin
- arch: arm64
npm_config_arch: arm64
os: macos-latest
platform: darwin
release:
if: ${{github.event.inputs.release-to-marketplace == 'true'}}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- env:
VSCE_PAT: ${{secrets.VSCE_PAT}}
name: publish to marketplace
run: npx @vscode/vsce publish --packagePath $(find . -iname *.vsix)
name: Build Poshi VSCode Extension
on:
workflow_dispatch:
inputs:
release-to-marketplace:
description:
Release to Marketplace
type: boolean
permissions:
contents: read