mirror of
https://github.com/antos-rde/antos.git
synced 2024-12-25 13:08:22 +01:00
update(ci): remove existing package version before uploading new one
This commit is contained in:
parent
6c3ab28d88
commit
c738ebf998
@ -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
|
||||
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" --upload-file $file $URL/$(basename $file)
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user