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