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