-
Notifications
You must be signed in to change notification settings - Fork 487
70 lines (66 loc) · 2.58 KB
/
BUILD_ON_DEMAND.yml
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
name: BUILD_ON_DEMAND
on:
workflow_dispatch:
inputs:
buildName:
description: 'Name of the build'
required: true
linkedDependencies:
description: 'Dependencies to link from GitHub (format: bpmn-js#develop,dmn-js#9.0.0)'
default: ''
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-2022 ]
runs-on: ${{ matrix.os }}
env:
ON_DEMAND: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Link dependencies
env:
LINKED_DEPENDENCIES: "${{ github.event.inputs.linkedDependencies }}"
run: npm run link-dependencies
- name: Build distro (Linux)
if: ${{ runner.OS == 'Linux' }}
env:
BUILD_NAME: "${{ github.event.inputs.buildName }}"
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ON_DEMAND_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_ON_DEMAND_SECRET_ACCESS_KEY }}"
AWS_REGION: "${{ secrets.AWS_ON_DEMAND_REGION }}"
AWS_BUCKET: "${{ secrets.AWS_ON_DEMAND_BUCKET }}"
CSC_LINK: "${{ secrets.CSC_LINK }}"
CSC_KEY_PASSWORD: "${{ secrets.CSC_KEY_PASSWORD }}"
run: npm run build -- --linux --publish --on-demand
- name: Build distro (MacOS)
if: ${{ runner.os == 'macOS' }}
env:
BUILD_NAME: "${{ github.event.inputs.buildName }}"
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ON_DEMAND_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_ON_DEMAND_SECRET_ACCESS_KEY }}"
AWS_REGION: "${{ secrets.AWS_ON_DEMAND_REGION }}"
AWS_BUCKET: "${{ secrets.AWS_ON_DEMAND_BUCKET }}"
APPLE_DEVELOPER_ID: "${{ secrets.APPLE_DEVELOPER_ID }}"
APPLE_DEVELOPER_ID_PASSWORD: "${{ secrets.APPLE_DEVELOPER_ID_PASSWORD }}"
APPLE_TEAM_ID: "${{ secrets.APPLE_TEAM_ID }}"
CSC_LINK: "${{ secrets.CSC_LINK }}"
CSC_KEY_PASSWORD: "${{ secrets.CSC_KEY_PASSWORD }}"
run: npm run build -- --mac --publish --on-demand
- name: Build distro (Windows)
if: ${{ runner.os == 'Windows' }}
env:
BUILD_NAME: "${{ github.event.inputs.buildName }}"
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ON_DEMAND_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_ON_DEMAND_SECRET_ACCESS_KEY }}"
AWS_REGION: "${{ secrets.AWS_ON_DEMAND_REGION }}"
AWS_BUCKET: "${{ secrets.AWS_ON_DEMAND_BUCKET }}"
run: npm run build -- --win --publish --on-demand