From 195c02748bb38165ac46cf3361ba9b3bab1af92d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 8 Jan 2024 13:13:42 -0700 Subject: [PATCH] Clean up publish script --- .gitea/publish.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/publish.sh b/.gitea/publish.sh index 836d821..9b3e086 100755 --- a/.gitea/publish.sh +++ b/.gitea/publish.sh @@ -7,23 +7,21 @@ VERSION=$GITHUB_REF_NAME BASE=$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION +echo "=== Delete $VERSION" curl \ --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ --request DELETE \ $BASE +echo for path in "$@"; do fn=$(basename "$path") echo "=== Upload $VERSION/$fn" - curl \ - --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ - --request DELETE \ - $BASE/$fn - curl \ --fail \ --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ --upload-file "$path" \ $BASE/$fn + echo done