Skip to content

Commit 3004275

Browse files
authored
Merge pull request #42 from umpire274/v0.2.0
Updated workflow GitHub with debug messages
2 parents 19d12cc + 2e3123d commit 3004275

File tree

2 files changed

+16
-34
lines changed

2 files changed

+16
-34
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ jobs:
154154
- name: <Debug>Verifica upload effettivo</Debug>
155155
shell: bash
156156
run: |
157-
echo "Contenuto della directory di lavoro dopo upload-artifact:"
158-
find . -type f | grep release_artifacts || echo "Nessun file trovato"
157+
echo "Contenuto della directory di lavoro"
158+
ls -lah *
159159
160160
echo -e "\nControllo cartelle Artifact note:"
161161
ls -R ${{ github.workspace }}/release_artifacts || echo "Cartella non trovata"

.github/workflows/release.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Create Release
22

33
on:
44
workflow_run:
5-
workflows: [ "Build and Upload Artifacts" ]
6-
types: [ completed ]
5+
workflows: ["Build and Upload Artifacts"]
6+
types: [completed]
77

88
jobs:
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 }}
@@ -73,4 +55,4 @@ jobs:
7355

7456
- name: Cleanup
7557
if: always()
76-
run: rm -rf release_artifacts/
58+
run: rm -rf release_artifacts/

0 commit comments

Comments
 (0)