From 555af4beae1cd2340d5aabd3932cafd21f197cf4 Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Mon, 16 Dec 2024 14:34:51 -0500 Subject: [PATCH] Fix artifact config --- .gitea/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d20f542..8cf231c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -31,12 +31,12 @@ jobs: 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 ./eia-client ]; then + 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}" else - echo "Error: Binary eia-client not found." + echo "Error: Binary ./${BINARY_PATH}/${BINARY_NAME} not found." exit 1 fi