my token might be in the wrong place
Build and Publish / build (push) Failing after 4m50s

This commit is contained in:
2026-03-24 14:54:08 +00:00
parent f53848aa8a
commit cfcd8f526e
+4 -2
View File
@@ -37,7 +37,9 @@ jobs:
REPOSITORY_OWNER: ${{ gitea.repository_owner }}
VERSION: ${{ gitea.ref_name }}
run: |
test -n "$GITEA_TOKEN" || { echo "GITEA_TOKEN is empty"; exit 1; }
VERSION="${GITEA_REF_NAME}"
curl --fail-with-body \
-H "Authorization: token ${GITEA_TOKEN}" \
--user "${GITEA_ACTOR}:${GITEA_TOKEN}" \
--upload-file dist/samba-configer \
"${SERVER_URL}/api/packages/${REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"
"${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"