We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 642000d commit bb46065Copy full SHA for bb46065
.github/workflows/release.yml
@@ -883,20 +883,20 @@ jobs:
883
folder=$(dirname "$artifact")
884
file=$(basename "$artifact")
885
886
- # Start SFTP session
887
sftp -P "$port" -i "$HOME/.ssh/github_sftp_key" -o StrictHostKeyChecking=no "$username@$domain" <<EOF
888
mkdir $repo
889
cd $repo
890
891
- # Create nested directories if folder is not "."
+ # Create remote directories
892
$(IFS=/; for d in $folder; do
893
- if [ "$d" != "." ]; then
894
- echo "mkdir $d"
895
- echo "cd $d"
896
- fi
+ if [ "$d" != "." ]; then
+ echo "mkdir $d"
+ echo "cd $d"
+ fi
897
done)
898
899
- put $artifact
+ # Upload the file
+ put $file
900
bye
901
EOF
902
0 commit comments