Fix: Delete old package before upload
All checks were successful
Build and Publish Web / build (push) Successful in 15s

This commit is contained in:
2026-03-24 22:41:33 +01:00
parent 9702741bbe
commit 162fbabd26

View File

@@ -34,9 +34,14 @@ jobs:
cd public cd public
zip -r ../build.zip ./* zip -r ../build.zip ./*
- name: Delete old package (if exists)
run: |
curl -X DELETE --user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
"https://git.jirkabuilds.dev/api/packages/${{ github.repository_owner }}/generic/hugo-build/latest/web.zip" || true
- name: Uploading package back to gitea - name: Uploading package back to gitea
run: | run: |
curl --user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \ curl -f --user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
--upload-file build.zip \ --upload-file build.zip \
"https://git.jirkabuilds.dev/api/packages/${{ github.repository_owner }}/generic/hugo-build/latest/web.zip" "https://git.jirkabuilds.dev/api/packages/${{ github.repository_owner }}/generic/hugo-build/latest/web.zip"