1
0

fixed deployArtifactToWebserver workflow

This commit is contained in:
Robert Rosendahl 2025-01-14 02:01:17 +01:00
parent dff7852902
commit 1b48f4722f

View File

@ -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