fixed deployArtifactToWebserver workflow
This commit is contained in:
parent
dff7852902
commit
1b48f4722f
@ -40,14 +40,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Uploading $upload_name to ${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/$upload_name"
|
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 "Uploading finished $upload_name"
|
||||||
|
|
||||||
echo "TXT filename is '${{ inputs.txtFileName }}'"
|
echo "TXT filename is '${{ inputs.txtFileName }}'"
|
||||||
if [ "${{ inputs.txtFileName }}" != "-" ]; then
|
if [ "${{ inputs.txtFileName }}" != "-" ]; then
|
||||||
echo "Uploading additional text file ${{ inputs.txtFileName }} to ${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/${{ inputs.txtFileName }}"
|
echo "Uploading additional text file ${{ inputs.txtFileName }} to ${{ vars.WEB_DEPLOY_URL }}${{ inputs.dir }}/${{ inputs.txtFileName }}"
|
||||||
printf "%b" "${{ inputs.txtFileContent }}" > ${{ 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
|
else
|
||||||
echo "No additional text file to upload."
|
echo "No additional text file to upload."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user