remove the need for ftp server

This commit is contained in:
Bryan Gerlach
2024-11-05 13:58:14 -06:00
parent bace58ac1f
commit bfadbb8cd5
4 changed files with 55 additions and 25 deletions

View File

@@ -524,15 +524,23 @@ jobs:
# rustdesk-*.deb
# rustdesk-*.rpm
- name: Upload to FTP
# - name: Upload to FTP
# if: ${{ fromJson(inputs.extras).rdgen == 'true' }}
# uses: SamKirkland/FTP-Deploy-Action@v4.3.5
# with:
# server: ${{ secrets.GEN_FTP_SERVER }}
# username: ${{ secrets.GEN_FTP_USER }}
# password: ${{ secrets.GEN_FTP_PASSWORD }}
# local-dir: output/
# server-dir: /root/rdgen/exe/${{ env.UUIDFOLDER }}/
- name: send file to rdgen server
if: ${{ fromJson(inputs.extras).rdgen == 'true' }}
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.GEN_FTP_SERVER }}
username: ${{ secrets.GEN_FTP_USER }}
password: ${{ secrets.GEN_FTP_PASSWORD }}
local-dir: output/
server-dir: /root/rdgen/exe/${{ env.UUIDFOLDER }}/
shell: bash
run: |
curl -i -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${{ fromJson(inputs.extras).token }}" -F "file=@./output/${{ inputs.filename }}.deb" -F "uuid=${{ inputs.uuid }}" ${{ secrets.GENURL }}/save_custom_client
curl -i -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${{ fromJson(inputs.extras).token }}" -F "file=@./output/${{ inputs.filename }}.rpm" -F "uuid=${{ inputs.uuid }}" ${{ secrets.GENURL }}/save_custom_client
curl -i -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${{ fromJson(inputs.extras).token }}" -F "file=@./output/${{ inputs.filename }}-suse.rpm" -F "uuid=${{ inputs.uuid }}" ${{ secrets.GENURL }}/save_custom_client
- name: send file to api server
if: ${{ fromJson(inputs.extras).rdgen == 'false' }}