@@ -2,15 +2,16 @@ name: release
22
33# Builds the self-contained Windows StreamFLOW.exe installer (jpackage) and publishes it as a
44# GitHub Release asset. The installer bundles the JavaFX app, a private JRE, the engine scripts,
5- # a portable Python (FlowKit) runtime, and the pre-staged R-Portable (FlowMagic plugins), so the
6- # end user needs no Java, Python, or R installed.
5+ # and a portable Python (FlowKit) runtime, so the end user needs no Java or Python installed.
76#
8- # Triggers:
9- # * push a tag like v2.0.0 -> release named after the tag
10- # * manual "Run workflow" -> provide the version; a v<version> tag is created
7+ # Python-only by DEFAULT (smaller, faster). The R-plugin runway is preserved: set the "bundle_r"
8+ # input to true to ALSO bundle R-Portable + the R-based plugins (FlowMagic, PeacoQC). When bundle_r
9+ # is false the R download step is skipped and package.ps1 runs with -SkipR. Tag-triggered releases
10+ # are always Python-only; use "Run workflow" with bundle_r=true for an R-enabled build.
1111#
12- # R-Portable is NOT built here — it is downloaded from a GitHub Release asset produced by
13- # the stage-r-portable workflow. Update R_PORTABLE_TAG below whenever a new R build is staged.
12+ # Triggers:
13+ # * push a tag like v2.0.0 -> Python-only release named after the tag
14+ # * manual "Run workflow" -> provide the version; optionally bundle_r=true for an R build
1415
1516on :
1617 push :
2223 description : ' App version to build and release (e.g. 2.0.1)'
2324 required : true
2425 default : ' 2.0.0'
26+ bundle_r :
27+ description : ' Also bundle R-Portable + R plugins (FlowMagic/PeacoQC)? Leave false for a Python-only build.'
28+ type : boolean
29+ required : false
30+ default : false
2531 r_portable_tag :
26- description : ' R-Portable release tag to bundle (leave blank to use the default below)'
32+ description : ' R-Portable release tag to bundle (only used when bundle_r is true; blank = default below)'
2733 required : false
2834 default : ' '
2935
3036env :
31- # Default R-Portable release tag — update this after running stage-r-portable
37+ # Default R-Portable release tag — used only when bundle_r=true. Update after running stage-r-portable.
3238 R_PORTABLE_TAG : r-portable-2026-07-04
3339
3440permissions :
7581 run : powershell -ExecutionPolicy Bypass -File engine\stage-python.ps1
7682
7783 - name : Download R-Portable from release assets
84+ if : ${{ github.event.inputs.bundle_r == 'true' }}
7885 shell : pwsh
7986 run : |
8087 # Prefer the workflow-dispatch override, then fall back to the env default.
0 commit comments