action to upload server binary
This commit is contained in:
parent
607152a702
commit
00eaf8a04c
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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
|
0
java_tools/ts_plugin/upload.sh → java_tools/ts_plugin/upload_plugin.sh
Executable file → Normal file
0
java_tools/ts_plugin/upload.sh → java_tools/ts_plugin/upload_plugin.sh
Executable file → Normal file
Loading…
Reference in New Issue