From 3468d4f3e6b41324eb8007e94b3c88cb5763ccfd Mon Sep 17 00:00:00 2001
From: Antonio Vazquez <antoniovazquezblanco@gmail.com>
Date: Mon, 29 Jan 2024 13:12:06 +0100
Subject: [PATCH] ci: fix artifact naming

---
 .github/workflows/ci.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eb32223..50eb52e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,7 +28,7 @@ jobs:
       - run: ./gradlew build -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
       - uses: actions/upload-artifact@v4
         with:
-          name: distribution
+          name: GhidraBoy_Ghidra_${{ matrix.ghidra }}
           path: build/distributions/*_GhidraBoy.zip
           if-no-files-found: 'error'
   release:
@@ -41,11 +41,9 @@ jobs:
     steps:
       - uses: actions/checkout@v4
       - uses: actions/download-artifact@v4
-        with:
-          name: distribution
       - name: Create release and upload distribution
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           gh release create --verify-tag --generate-notes --draft "${{ github.ref_name }}"
-          gh release upload "${{ github.ref_name }}" *_GhidraBoy.zip
+          gh release upload "${{ github.ref_name }}" GhidraBoy_Ghidra_*/*.zip