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