Skip to content

Commit bb46065

Browse files
committed
ci: switch workflow artifact upload from artifact to file
1 parent 642000d commit bb46065

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -883,20 +883,20 @@ jobs:
883883
folder=$(dirname "$artifact")
884884
file=$(basename "$artifact")
885885
886-
# Start SFTP session
887886
sftp -P "$port" -i "$HOME/.ssh/github_sftp_key" -o StrictHostKeyChecking=no "$username@$domain" <<EOF
888887
mkdir $repo
889888
cd $repo
890889
891-
# Create nested directories if folder is not "."
890+
# Create remote directories
892891
$(IFS=/; for d in $folder; do
893-
if [ "$d" != "." ]; then
894-
echo "mkdir $d"
895-
echo "cd $d"
896-
fi
892+
if [ "$d" != "." ]; then
893+
echo "mkdir $d"
894+
echo "cd $d"
895+
fi
897896
done)
898897
899-
put $artifact
898+
# Upload the file
899+
put $file
900900
bye
901901
EOF
902902

0 commit comments

Comments
 (0)