update(ci): remove existing package version before uploading new one
All checks were successful
AntOS pipeline / build-amd64 (push) Successful in 4m19s
AntOS pipeline / build-arm64 (push) Successful in 4m22s
AntOS pipeline / build-arm (push) Successful in 3m34s
AntOS pipeline / publish-on-tag (push) Has been skipped

This commit is contained in:
Dany LE 2024-07-25 21:16:37 +02:00 committed by GitHub
parent 6c3ab28d88
commit c738ebf998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" --upload-file $file $URL/$(basename $file)
done