Skip to content

Commit 11b8f45

Browse files
committed
Add option for terminal debugging
1 parent ac7e370 commit 11b8f45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: create-release
22
on:
33
workflow_dispatch:
4+
inputs:
5+
debug_enabled:
6+
type: boolean
7+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
8+
required: false
9+
default: false
410
push:
511
branches: [ master ]
612
tags:
@@ -64,6 +70,9 @@ jobs:
6470
chmod +x osx-codesign.sh && ./osx-codesign.sh
6571
ditto -ck --keepParent --rsrc --sequesterRsrc ./dist/CellProfiler-Analyst.app ./dist/CellProfiler-Analyst-macOS-3.0.4.1.zip
6672
working-directory: ./distribution/macos
73+
- name: Setup tmate session
74+
uses: mxschmitt/action-tmate@v3
75+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
6776
- env:
6877
JDK_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.20-8\x64
6978
if: ${{ matrix.os == 'windows-latest' }}

0 commit comments

Comments
 (0)