add upload command #3

Merged
OCram85 merged 15 commits from add/uploadStep into main 2024-05-14 10:24:21 +02:00
Showing only changes of commit c4988f9492 - Show all commits

View File

@ -48,10 +48,11 @@ showSettings() {
} }
uploadArtifact() { uploadArtifact() {
curl -v --output /dev/null --write-out "%{http_code}" \ cout=$(curl -v --output /dev/null --write-out "%{http_code}" \
--user "$PLUGIN_USER:$PLUGIN_PASSWORD" \ --user "$PLUGIN_USER:$PLUGIN_PASSWORD" \
--upload-file "$PLUGIN_FILE_SOURCE" \ --upload-file "$PLUGIN_FILE_SOURCE" \
"$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME" "$CI_FORGE_URL/api/packages/$PLUGIN_OWNER/generic/$PLUGIN_PACKAGE_NAME/$PLUGIN_PACKAGE_VERSION/$PLUGIN_FILE_NAME")
say "Curl output is: $cout" "uploadArtifact"
} }
main() { main() {