From 1b48f4722f1e50cabd42adc8f130b2bd28ab307d Mon Sep 17 00:00:00 2001 From: Robert Rosendahl Date: Tue, 14 Jan 2025 02:01:17 +0100 Subject: [PATCH] fixed deployArtifactToWebserver workflow --- .gitea/workflows/deployArtifactToWebserver.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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