@@ -2,8 +2,8 @@ name: Create Release
22
33on :
44 workflow_run :
5- workflows : [ "Build and Upload Artifacts" ]
6- types : [ completed ]
5+ workflows : ["Build and Upload Artifacts"]
6+ types : [completed]
77
88jobs :
99 release :
@@ -14,51 +14,33 @@ jobs:
1414 - name : Checkout Repository
1515 uses : actions/checkout@v4
1616
17- - name : <Debug>Controlla workspace prima del download</Debug>
18- shell : bash
17+ - name : DEBUG — Info evento e run
1918 run : |
20- echo "[DEBUG] Workspace iniziale (dopo checkout):"
21- ls -lah
19+ echo "Workflow triggering this run:"
20+ echo "Workflow name: ${{ github.event.workflow.name }}"
21+ echo "Workflow run ID: ${{ github.event.workflow_run.id }}"
2222
2323 - name : Download Artifacts
2424 uses : actions/download-artifact@v4
2525 with :
26- path : release_artifacts
2726 run-id : ${{ github.event.workflow_run.id }}
27+ path : release_artifacts
2828 merge-multiple : true
2929
30- - name : <Debug>Controllo contenuto release_artifacts</Debug>
31- shell : bash
32- run : |
33- echo "[DEBUG] Verifica struttura release_artifacts:"
34- tree release_artifacts || find release_artifacts || echo "Directory vuota o non trovata"
35-
36- - name : Verify GPG Signatures
37- shell : bash
38- run : |
39- cd release_artifacts
40- for sig in *.sig; do
41- file=${sig%.sig}
42- echo "Verifying $file..."
43- gpg --verify $sig $file || exit 1
44- done
45-
46- - name : Verify Checksums
30+ - name : DEBUG — Controllo contenuto release_artifacts
4731 shell : bash
4832 run : |
49- cd release_artifacts
50- for checksum in *.sha256; do
51- echo "Verifying $checksum..."
52- sha256sum -c $checksum || exit 1
53- done
33+ echo "[DEBUG] Verifica contenuto dopo il download:"
34+ ls -l release_artifacts || echo "release_artifacts non trovata"
35+ find release_artifacts || echo "nessun file scaricato"
5436
55- - name : Extract Version
37+ - name : Estrai versione da Cargo.toml
5638 id : extract_version
5739 run : |
5840 VERSION=$(grep '^version' Cargo.toml | head -n1 | cut -d '"' -f2)
5941 echo "version=$VERSION" >> $GITHUB_OUTPUT
6042
61- - name : Create GitHub Release
43+ - name : Crea release GitHub
6244 uses : softprops/action-gh-release@v1
6345 with :
6446 tag_name : v${{ steps.extract_version.outputs.version }}
7355
7456 - name : Cleanup
7557 if : always()
76- run : rm -rf release_artifacts/
58+ run : rm -rf release_artifacts/
0 commit comments