diff options
| author | Dan Engelbrecht <[email protected]> | 2022-09-12 23:28:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-12 14:28:03 -0700 |
| commit | 7362f1d54153fe33d9dd10f255e036b274fb5c24 (patch) | |
| tree | ed0359366fa03d12d82f411524f692343fd2c41e | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-7362f1d54153fe33d9dd10f255e036b274fb5c24.tar.xz zen-7362f1d54153fe33d9dd10f255e036b274fb5c24.zip | |
create release in Sentry and set version string in executable (#162)
* create release in Sentry and set version string in executable
* changelog
* 0.1.6-pre0
* sentr-cli install dir
* 0.1.6-pre1
* include org and project when creating Sentry release
* 0.1.6-pre2
* move org and project options
* 0.1.6-pre3
* need to first to "new", then finalize
* 0.1.6-pre4
* read version before creating release
* 0.1.6-pre5
| -rw-r--r-- | .github/workflows/create_release.yml | 27 | ||||
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | VERSION.txt | 2 | ||||
| -rw-r--r-- | zenserver/zenserver.cpp | 1 |
4 files changed, 26 insertions, 7 deletions
diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 9e3a430a9..78ed375ae 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -195,6 +195,23 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Read VERSION.txt + id: read_version + uses: andstor/file-reader-action@v1 + with: + path: "VERSION.txt" + + - name: Get Sentry CLI + run: | + curl -sL https://sentry.io/get-cli/ | bash + ls -la ./scripts + env: + INSTALL_DIR: ./scripts + + - name: Create Release in Sentry + run: | + scripts/sentry-cli --auth-token ${{ secrets.SENTRY_API_KEY }} releases new --org to --project zen-server ${{steps.read_version.outputs.contents}} + - name: Download Linux artifacts uses: actions/download-artifact@v1 with: @@ -223,12 +240,6 @@ jobs: with: path: "CHANGELOG.tmp" - - name: Read VERSION.txt - id: read_version - uses: andstor/file-reader-action@v1 - with: - path: "VERSION.txt" - - name: Check prerelease id: get-prerelease uses: haya14busa/action-cond@v1 @@ -252,3 +263,7 @@ jobs: linux/zenserver-linux.zip win64/zenserver-win64.zip macos/zenserver-macos.zip + + - name: Finalize Release in Sentry + run: | + scripts/sentry-cli --auth-token ${{ secrets.SENTRY_API_KEY }} releases finalize --org to --project zen-server ${{steps.read_version.outputs.contents}} diff --git a/CHANGELOG.md b/CHANGELOG.md index 352b1e894..6ae854336 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## +- Feature: Create release in Sentry and use `sentry_options_set_release` to associate the executable + +## v0.1.4 - Bugfix: Don't fail entire request if GetCacheValue from Horde fails for a single value ## v0.1.4 diff --git a/VERSION.txt b/VERSION.txt index def9a0154..2f1618a23 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.1.5
\ No newline at end of file +0.1.6-pre5
\ No newline at end of file diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index 9e15b0c64..759c08476 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -956,6 +956,7 @@ ZenEntryPoint::Run() sentry_options_set_database_path(SentryOptions, SentryDatabasePath.c_str()); sentry_options_set_logger(SentryOptions, SentryLogFunction, this); sentry_options_add_attachment(SentryOptions, m_ServerOptions.AbsLogFile.string().c_str()); + sentry_options_set_release(SentryOptions, ZEN_CFG_VERSION); // sentry_options_set_debug(SentryOptions, 1); if (int ErrorCode = sentry_init(SentryOptions); ErrorCode == 0) |