diff --git a/.gitea/workflows/deployArtifactToWebserver.yaml b/.gitea/workflows/deployArtifactToWebserver.yaml index d9de76e..034df58 100644 --- a/.gitea/workflows/deployArtifactToWebserver.yaml +++ b/.gitea/workflows/deployArtifactToWebserver.yaml @@ -40,14 +40,14 @@ jobs: fi echo "Uploading $upload_name to ${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/$upload_name" - curl -H "Authorization: Bearer ${{ vars.WEB_DEPLOY_TOKEN }}" -d --binary-data @./$upload_name "${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/$upload_name" + curl -H "Authorization: Bearer ${{ vars.WEB_DEPLOY_TOKEN }}" --data-binary @"$upload_name" "${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/$upload_name" echo "Uploading finished $upload_name" echo "TXT filename is '${{ inputs.txtFileName }}'" if [ "${{ inputs.txtFileName }}" != "-" ]; then echo "Uploading additional text file ${{ inputs.txtFileName }} to ${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/${{ inputs.txtFileName }}" printf "%b" "${{ inputs.txtFileContent }}" > ${{ inputs.txtFileName }} - curl -H "Authorization: Bearer ${{ vars.WEB_DEPLOY_TOKEN }}" -d --binary-data @./${{ inputs.txtFileName }} "${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/${{ inputs.txtFileName }}" + curl -H "Authorization: Bearer ${{ vars.WEB_DEPLOY_TOKEN }}" --data-binary @"${{ inputs.txtFileName }}" "${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/${{ inputs.txtFileName }}" else echo "No additional text file to upload." fi