1 parent 83734cb commit a26242bCopy full SHA for a26242b
1 file changed
.github/workflows/release.yml
@@ -4,13 +4,27 @@ on:
4
push:
5
tags:
6
- 'v*'
7
- workflow_dispatch:
8
9
permissions:
10
contents: write
11
12
jobs:
+ # 1. Crea el GitHub Release vacío primero
13
+ create-release:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Create GitHub Release
17
+ env:
18
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
+ run: |
20
+ gh release create "${{ github.ref_name }}" \
21
+ --title "${{ github.ref_name }}" \
22
+ --notes "Release ${{ github.ref_name }}" \
23
+ --repo "${{ github.repository }}"
24
+
25
+ # 2. Compila para cada plataforma y sube artefactos al release
26
build:
27
+ needs: create-release
28
name: Build (${{ matrix.label }})
29
strategy:
30
matrix:
0 commit comments