From 40f1974f3daa9ec4fd423da4930f5e41a67058ce Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Fri, 25 Sep 2026 14:33:49 +0100 Subject: [PATCH] CI: upload assets with POST (overwrites) and correct content types Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW --- .gitea/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1fc548e..515c14f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -137,9 +137,11 @@ jobs: files="docs/openapi.json docker-compose.yml deploy/prometheus/prometheus.yml deploy/prometheus/alerts.yml deploy/grafana/provisioning/datasources/prometheus.yml deploy/grafana/provisioning/dashboards/dashboards.yml $(ls deploy/grafana/dashboards/*.json)" + # POST creates or overwrites (ProGet rejects PUT to an existing path). for dir in $dirs; do for file in $files; do - curl -fsS -X PUT -H "X-ApiKey: $API_KEY" --data-binary "@$file" "$BASE/$dir/$file" + case "$file" in *.json) type=application/json ;; *) type=application/yaml ;; esac + curl -fsS -X POST -H "X-ApiKey: $API_KEY" -H "Content-Type: $type" --data-binary "@$file" "$BASE/$dir/$file" echo "uploaded $dir/$file" done done