Skip to content

Commit d95ed8f

Browse files
committed
ci(release): build artifacts on tag push without auto-creating release
1 parent 6364136 commit d95ed8f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ on:
3333
push:
3434
tags:
3535
- 'v*'
36+
workflow_dispatch:
37+
inputs:
38+
publish_release:
39+
description: 'Crear GitHub Release (draft) con artifacts adjuntos'
40+
required: false
41+
default: false
42+
type: boolean
3643

3744
# ------------------------------------------------------------
3845
# PERMISSIONS: permisos que necesita el workflow.
@@ -210,6 +217,7 @@ jobs:
210217
name: Create GitHub Release
211218
runs-on: ubuntu-latest
212219
needs: [build-windows, build-linux]
220+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish_release == true && startsWith(github.ref, 'refs/tags/v') }}
213221

214222
steps:
215223
- name: Checkout código

0 commit comments

Comments
 (0)