Skip to content

Commit

Permalink
CI: Fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Sep 24, 2023
1 parent e3666e5 commit 9b7b790
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1753,11 +1753,13 @@ jobs:
echo "Release already has file: ${filename}"
fi
done
if ! [ "${files[@]}" = "" ]; then
echo "Uploading files: ${files[@]}"
rsync -e "ssh -p ${{secrets.SSH_PORT}} -o StrictHostKeyChecking=no" -var ${files[@]} ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{secrets.RELEASES_PATH}}/
files_list="${files[@]}"
a_files_list="${a_files[@]}"
if ! [ "${files_list}" = "" ]; then
echo "Uploading files: ${files_list}"
rsync -e "ssh -p ${{secrets.SSH_PORT}} -o StrictHostKeyChecking=no" -var ${files_list} ${{secrets.SSH_USER}}@${{secrets.SSH_HOST}}:${{secrets.RELEASES_PATH}}/
fi
if ! [ "${a_files[@]}" = "" ]; then
echo "Adding files to GitHub release: ${files}"
hub release edit -m "Strawberry ${{env.release_version}}" ${a_files[@]} "${{env.release_version}}"
if ! [ "${a_files_list}" = "" ]; then
echo "Adding files to GitHub release: ${files_list}"
hub release edit -m "Strawberry ${{env.release_version}}" ${a_files_list} "${{env.release_version}}"
fi

0 comments on commit 9b7b790

Please sign in to comment.