mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 08:03:54 -07:00
CI: Upload artifact files directly (#6654)
* Upload artifact files directly * match pdbs name * Update name variable
This commit is contained in:
parent
f15b70e4ae
commit
c375cdbb1a
2 changed files with 8 additions and 8 deletions
|
|
@ -35,15 +35,15 @@ if ! cd "$path"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set filename
|
# set filename
|
||||||
name="${file%.*}" # remove all after last .
|
name="${file%.*}" # remove file extension
|
||||||
new_name="$name$SUFFIX."
|
new_name="$name$SUFFIX"
|
||||||
if [[ $MAKE_ZIP ]]; then
|
if [[ $MAKE_ZIP ]]; then
|
||||||
filename="${new_name}zip"
|
filename="${new_name}.zip"
|
||||||
echo "creating zip '$filename' from '$file'"
|
echo "creating zip '$filename' from '$file'"
|
||||||
zip "$filename" "$file"
|
zip "$filename" "$file"
|
||||||
else
|
else
|
||||||
extension="${file##*.}" # remove all before last .
|
extension="${file##*.}" # remove all before last .
|
||||||
filename="$new_name$extension"
|
filename="$new_name.$extension"
|
||||||
echo "renaming '$file' to '$filename'"
|
echo "renaming '$file' to '$filename'"
|
||||||
mv "$file" "$filename"
|
mv "$file" "$filename"
|
||||||
fi
|
fi
|
||||||
|
|
@ -52,4 +52,4 @@ cd "$oldpwd"
|
||||||
relative_path="$path/$filename"
|
relative_path="$path/$filename"
|
||||||
ls -l "$relative_path"
|
ls -l "$relative_path"
|
||||||
echo "path=$relative_path" >>"$GITHUB_OUTPUT"
|
echo "path=$relative_path" >>"$GITHUB_OUTPUT"
|
||||||
echo "name=$filename" >>"$GITHUB_OUTPUT"
|
echo "name=$new_name" >>"$GITHUB_OUTPUT"
|
||||||
|
|
|
||||||
6
.github/workflows/desktop-build.yml
vendored
6
.github/workflows/desktop-build.yml
vendored
|
|
@ -214,8 +214,8 @@ jobs:
|
||||||
if: matrix.package != 'skip'
|
if: matrix.package != 'skip'
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.distro}}${{matrix.version}}-package
|
|
||||||
path: ${{steps.build.outputs.path}}
|
path: ${{steps.build.outputs.path}}
|
||||||
|
archive: false
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
|
|
@ -501,15 +501,15 @@ jobs:
|
||||||
if: matrix.make_package
|
if: matrix.make_package
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.artifact_name}}
|
|
||||||
path: ${{steps.build.outputs.path}}
|
path: ${{steps.build.outputs.path}}
|
||||||
|
archive: false
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload PDBs (Program Databases)
|
- name: Upload PDBs (Program Databases)
|
||||||
if: matrix.os == 'Windows'
|
if: matrix.os == 'Windows'
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: Windows${{matrix.target}}-PDBs
|
name: ${{steps.build.outputs.name}}-PDBs
|
||||||
path: |
|
path: |
|
||||||
build/cockatrice/Release/*.pdb
|
build/cockatrice/Release/*.pdb
|
||||||
build/oracle/Release/*.pdb
|
build/oracle/Release/*.pdb
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue