From 46fa0ba841b47ee3d7df15bdcead5fc238ed5e86 Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Fri, 19 Jan 2024 09:11:03 +0100 Subject: [PATCH] Use environ SENTRY_TOKEN --- conanfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index d83fe9aa..d8459352 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,4 +1,5 @@ from io import StringIO +import os from os import path from conan import ConanFile @@ -139,7 +140,7 @@ def build(self): build_source_dir = self.build_path.parent.parent.as_posix() self.output.info("Uploading debug symbols to sentry") - self.run(f"sentry-cli debug-files upload --include-sources -o {sentry_org} -p {sentry_project} {build_source_dir}") + self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} debug-files upload --include-sources -o {sentry_org} -p {sentry_project} {build_source_dir}") def package(self):