Skip to content

Commit

Permalink
Use SENTRY_TOKEN env for uploading to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Jan 19, 2024
1 parent 61d4a31 commit 3c7b694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def build(self):

# create a sentry release and link it to the commit this is based upon
self.output.info(f"Creating a new release {self.version} in Sentry and linking it to the current commit {self.conan_data['commit']}")
self.run(f"sentry-cli releases new -o {sentry_org} -p {sentry_project} {self.version}")
self.run(f"sentry-cli releases set-commits -o {sentry_org} -p {sentry_project} --commit \"Ultimaker/CuraEngine@{self.conan_data['commit']}\" {self.version}")
self.run(f"sentry-cli releases finalize -o {sentry_org} -p {sentry_project} {self.version}")
self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} releases new -o {sentry_org} -p {sentry_project} {self.version}")
self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} releases set-commits -o {sentry_org} -p {sentry_project} --commit \"Ultimaker/CuraEngine@{self.conan_data['commit']}\" {self.version}")
self.run(f"sentry-cli --auth-token {os.environ['SENTRY_TOKEN']} releases finalize -o {sentry_org} -p {sentry_project} {self.version}")

def package(self):
ext = ".exe" if self.settings.os == "Windows" else ""
Expand Down

0 comments on commit 3c7b694

Please sign in to comment.