mirror of
https://github.com/antos-rde/antos.git
synced 2024-12-26 13:38:23 +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)
|
files=$(find ./build -type f)
|
||||||
PKG_VERSION="${{ gitea.ref_name }}"
|
PKG_VERSION="${{ gitea.ref_name }}"
|
||||||
URL="https://git.iohub.dev/api/packages/dany/generic/antos/$PKG_VERSION"
|
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
|
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
|
done
|
Loading…
Reference in New Issue
Block a user