Forráskód Böngészése

Preserve unique artifact basenames during staging

copilot-swe-agent[bot] 3 hónapja
szülő
commit
8cb780313a
1 módosított fájl, 6 hozzáadás és 2 törlés
  1. 6 2
      .github/workflows/build.yml

+ 6 - 2
.github/workflows/build.yml

@@ -131,14 +131,18 @@ jobs:
 
           for f in build/openpuck/*.{uf2,bin,hex,elf,map,zip}; do
             [ -f "$f" ] || continue
+            base="$(basename "$f")"
+            stem="${base%.*}"
             ext="${f##*.}"
-            cp "$f" "build/artifacts/OpenPuck-${ARTIFACT_VERSION}.${ext}"
+            cp "$f" "build/artifacts/${stem}-${ARTIFACT_VERSION}.${ext}"
           done
 
           for f in build/reversepuck/*.{uf2,bin,hex,elf,map,zip}; do
             [ -f "$f" ] || continue
+            base="$(basename "$f")"
+            stem="${base%.*}"
             ext="${f##*.}"
-            cp "$f" "build/artifacts/ReversePuckFirmware-${ARTIFACT_VERSION}.${ext}"
+            cp "$f" "build/artifacts/${stem}-${ARTIFACT_VERSION}.${ext}"
           done
 
           ls -la build/artifacts