Fix: Delete old package before upload
All checks were successful
Build and Publish Web / build (push) Successful in 15s
All checks were successful
Build and Publish Web / build (push) Successful in 15s
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user