forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 10
87 lines (76 loc) · 2.6 KB
/
release_build_extended_services.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: "Release :: Build (Extended Services)"
on:
workflow_call:
inputs:
dry_run:
type: boolean
required: true
base_ref:
type: string
required: true
tag:
type: string
required: false
default: "0.0.0"
upload_asset_url:
type: string
required: false
default: ""
secrets:
gh_token:
required: false
env:
KIE_TOOLS_BUILD__runLinters: "false"
KIE_TOOLS_BUILD__runTests: "false"
KIE_TOOLS_BUILD__runEndToEndTests: "false"
KIE_TOOLS_BUILD__buildContainerImages: "true"
jobs:
extended_services:
env:
EXTENDED_SERVICES__kieSandboxUrl: "https://kiegroup.github.io/kogito-online"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
steps:
- name: "Support longpaths (Windows only)"
if: runner.os == 'Windows'
run: git config --system core.longpaths true
- name: "Checkout @ GitHub default"
uses: actions/checkout@v3
- name: "Checkout @ Simulated squashed-merge if PR"
uses: ./.github/actions/checkout-pr
with:
ref: ${{ inputs.base_ref }}
- name: "Setup environment"
id: setup_env
uses: ./.github/actions/setup-env
- name: "Bootstrap"
id: bootstrap
uses: ./.github/actions/bootstrap
with:
pnpm_filter_string: -F @kie-tools/extended-services...
- name: "Build"
shell: bash
run: |
pnpm ${{ steps.bootstrap.outputs.pnpm_filter_string }} build:prod
- name: "Upload Extended Services for macOS (macOS only)"
if: ${{ runner.os == 'macOS' && !inputs.dry_run }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.gh_token }}
with:
upload_url: ${{ inputs.upload_asset_url }}
asset_path: ./packages/extended-services/dist/darwin/Kogito.dmg
asset_name: kie_sandbox_extended_services_macos_${{ inputs.tag }}.dmg
asset_content_type: application/octet-stream
- name: "Upload Extended Services for Windows (Windows only)"
if: ${{ runner.os == 'Windows' && !inputs.dry_run }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.gh_token }}
with:
upload_url: ${{ inputs.upload_asset_url }}
asset_path: "./packages/extended-services/dist/win32/kie_sandbox_extended_services.exe"
asset_name: "kie_sandbox_extended_services_windows_${{ inputs.tag }}.exe"
asset_content_type: application/octet-stream