Fix: Added missing delete to workflow

This commit is contained in:
2026-03-25 08:31:12 +01:00
parent 0a4b1a24f7
commit 956b284d4b

View File

@@ -160,11 +160,17 @@ jobs:
cd public cd public
zip -r ../build.zip ./* zip -r ../build.zip ./*
# Need to delete old package first, otherwise new will not replace it
- 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/build.zip" "https://git.jirkabuilds.dev/api/packages/${{ github.repository_owner }}/generic/hugo-build/latest/web.zip"
# TODO - Webhook # TODO - Webhook
``` ```