From 3c80053cb7759fdd6970a95cc06f15348cbce4bd Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 4 Jan 2024 23:19:10 -0700 Subject: [PATCH] Build log formatting --- .gitea/build.sh | 2 +- .gitea/publish.sh | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/build.sh b/.gitea/build.sh index b5a4e8d..35786a8 100755 --- a/.gitea/build.sh +++ b/.gitea/build.sh @@ -13,7 +13,7 @@ mkdir -p out/ while read variant vid pid flags; do log - log Building $vid $pid $product + log "Building $variant ($vid:$pid)" log # We can overload build.extra_flags from boards.txt, diff --git a/.gitea/publish.sh b/.gitea/publish.sh index 65a7556..efcbbc3 100755 --- a/.gitea/publish.sh +++ b/.gitea/publish.sh @@ -7,19 +7,16 @@ VERSION=$GITHUB_REF_NAME BASE=$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION -echo "=== Delete existing version: $VERSION" -curl \ - --include \ - --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ - --request DELETE \ - $BASE - for path in "$@"; do fn=$(basename "$path") echo "=== Upload $VERSION/$fn" + curl \ + --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ + --request DELETE \ + $BASE/$fn + curl \ --fail \ - --include \ --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ --upload-file "$path" \ $BASE/$fn