From c738ebf998b7f71fbef5711afaa7f2db2622f1d0 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Thu, 25 Jul 2024 21:16:37 +0200 Subject: [PATCH] update(ci): remove existing package version before uploading new one --- .gitea/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d274d97..62ab229 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -67,6 +67,7 @@ jobs: files=$(find ./build -type f) PKG_VERSION="${{ gitea.ref_name }}" URL="https://git.iohub.dev/api/packages/dany/generic/antos/$PKG_VERSION" + curl --request "DELETE" --header "Authorization: token ${{ secrets.GT_API_PAT }}" $URL/ || true for file in $files; do - curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" -v --upload-file $file $URL/$(basename $file) - done \ No newline at end of file + curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" --upload-file $file $URL/$(basename $file) + done