From bfbfb9c0e92334289693cb040b7d548d3fc4364d Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 9 May 2026 22:31:44 +0200 Subject: [PATCH] Use token header for package publishing --- .gitea/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 829aa9f..2e8139c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -96,20 +96,20 @@ jobs: cp "${artifact}" "${package_dir}/latest/${LATEST_FILE}" curl --fail-with-body \ - --user "${PACKAGE_OWNER}:${REGISTRY_TOKEN}" \ + --header "Authorization: token ${REGISTRY_TOKEN}" \ --upload-file "${package_dir}/versioned/${versioned_file}" \ "https://git.wilkensxl.de/api/packages/${PACKAGE_OWNER}/generic/${PACKAGE_NAME}/${package_version}/${versioned_file}" curl --silent --show-error \ - --user "${PACKAGE_OWNER}:${REGISTRY_TOKEN}" \ + --header "Authorization: token ${REGISTRY_TOKEN}" \ --request DELETE \ "https://git.wilkensxl.de/api/packages/${PACKAGE_OWNER}/generic/${PACKAGE_NAME}/latest" || true curl --fail-with-body \ - --user "${PACKAGE_OWNER}:${REGISTRY_TOKEN}" \ + --header "Authorization: token ${REGISTRY_TOKEN}" \ --upload-file "${package_dir}/latest/${LATEST_FILE}" \ "https://git.wilkensxl.de/api/packages/${PACKAGE_OWNER}/generic/${PACKAGE_NAME}/latest/${LATEST_FILE}" curl --fail --head \ - --user "${PACKAGE_OWNER}:${REGISTRY_TOKEN}" \ + --header "Authorization: token ${REGISTRY_TOKEN}" \ "https://git.wilkensxl.de/api/packages/${PACKAGE_OWNER}/generic/${PACKAGE_NAME}/latest/${LATEST_FILE}"