CI: Upload artifact files directly (#6654)

* Upload artifact files directly

* match pdbs name

* Update name variable
This commit is contained in:
tooomm 2026-03-08 18:03:01 +01:00 committed by GitHub
parent f15b70e4ae
commit c375cdbb1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -35,15 +35,15 @@ if ! cd "$path"; then
fi
# set filename
name="${file%.*}" # remove all after last .
new_name="$name$SUFFIX."
name="${file%.*}" # remove file extension
new_name="$name$SUFFIX"
if [[ $MAKE_ZIP ]]; then
filename="${new_name}zip"
filename="${new_name}.zip"
echo "creating zip '$filename' from '$file'"
zip "$filename" "$file"
else
extension="${file##*.}" # remove all before last .
filename="$new_name$extension"
filename="$new_name.$extension"
echo "renaming '$file' to '$filename'"
mv "$file" "$filename"
fi
@ -52,4 +52,4 @@ cd "$oldpwd"
relative_path="$path/$filename"
ls -l "$relative_path"
echo "path=$relative_path" >>"$GITHUB_OUTPUT"
echo "name=$filename" >>"$GITHUB_OUTPUT"
echo "name=$new_name" >>"$GITHUB_OUTPUT"

View file

@ -214,8 +214,8 @@ jobs:
if: matrix.package != 'skip'
uses: actions/upload-artifact@v7
with:
name: ${{matrix.distro}}${{matrix.version}}-package
path: ${{steps.build.outputs.path}}
archive: false
if-no-files-found: error
- name: Upload to release
@ -501,15 +501,15 @@ jobs:
if: matrix.make_package
uses: actions/upload-artifact@v7
with:
name: ${{matrix.artifact_name}}
path: ${{steps.build.outputs.path}}
archive: false
if-no-files-found: error
- name: Upload PDBs (Program Databases)
if: matrix.os == 'Windows'
uses: actions/upload-artifact@v7
with:
name: Windows${{matrix.target}}-PDBs
name: ${{steps.build.outputs.name}}-PDBs
path: |
build/cockatrice/Release/*.pdb
build/oracle/Release/*.pdb