From 3b707cced3d6ea1f0262f1f5fc393f262e851960 Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Mon, 16 Dec 2024 15:21:45 -0500 Subject: [PATCH] Fix artifact upload --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8cf231c..8f01521 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -28,13 +28,13 @@ jobs: - name: Upload Artifact to Gitea env: - GITEA_ARTIFACT_SERVER: ${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/${PACKAGE_NAME} API_TOKEN: ${{ secrets.API_TOKEN }} # Replace with a Gitea token stored in repository secrets run: | if [ -f ./${BINARY_PATH}/${BINARY_NAME} ]; then - curl -X PUT --user ${GITHUB_REPOSITORY_OWNER}:${API_TOKEN} \ - -F "artifact=@./${BINARY_PATH}/${BINARY_NAME}" \ - "$GITEA_ARTIFACT_SERVER/${{ github.ref_name }}/${BINARY_NAME}" + curl -X PUT \ + -H "Authorization: token ${API_TOKEN}" \ + --upload-file ./${BINARY_PATH}/${BINARY_NAME} \ + "${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/${PACKAGE_NAME}/${{ github.ref_name }}/${BINARY_NAME}" else echo "Error: Binary ./${BINARY_PATH}/${BINARY_NAME} not found." exit 1