action to upload server binary

This commit is contained in:
rusefi 2020-07-17 23:44:58 -04:00
parent 607152a702
commit 00eaf8a04c
4 changed files with 18 additions and 3 deletions

View File

@ -19,11 +19,15 @@ jobs:
- name: Build console
working-directory: ./java_console
run: ant
run: ant server_jar
- name: Upload console junit results
- name: Attach console junit results
if: always()
uses: actions/upload-artifact@v2
with:
name: console junit
path: ./java_console/build/*.txt
- name: Upload plugin body
working-directory: ./java_console
run: ./upload_server.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}

View File

@ -26,4 +26,4 @@ jobs:
- name: Upload plugin body
working-directory: ./java_tools/ts_plugin
run: ./upload.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}
run: ./upload_plugin.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
echo "No Secrets"
exit 0
fi
echo -e "\nUploading plugin body"
ncftpput -m -R -v -u "$1" -p "$2" "$3" autoupdate ../java_console_binary/rusefi_server.jar