Skip to content

Commit 08d25f2

Browse files
committed
add debug trigger to release
1 parent 912f3f3 commit 08d25f2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
push:
88
tags:
99
- 'v*' # only publish on version tags (e.g. v1.0.0)
10+
workflow_dispatch:
11+
inputs:
12+
debug:
13+
description: 'Open ssh debug session.'
14+
required: true
15+
default: false
16+
type: boolean
1017

1118
jobs:
1219

@@ -38,11 +45,20 @@ jobs:
3845
uses: actions/setup-python@v5
3946
with:
4047
python-version: ">=3.11" # for tomlib
48+
- name: Install Emacs
49+
if: ${{ github.event.inputs.debug == 'true' }}
50+
run: |
51+
sudo apt install emacs
52+
- name: Setup tmate session
53+
if: ${{ github.event.inputs.debug == 'true' }}
54+
uses: mxschmitt/[email protected]
55+
with:
56+
detached: true
57+
timeout-minutes: 60
4158
- name: Verify Tag Signature
4259
run: |
4360
TAG_NAME=${GITHUB_REF#refs/tags/}
4461
echo "Verifying tag $TAG_NAME..."
45-
git fetch origin tag $TAG_NAME
4662
git tag -v "$TAG_NAME"
4763
- name: Install uv
4864
uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)