To use this when deploying from AppVeyor you'll need to make the following changes to your appveyor.yml
.
environment:
SENTRY_AUTHTOKEN:
secure: ...
SENTRY_ORGANIZATION: org-name
SENTRY_PROJECT: project-name
after_deploy:
- ps: $buildDeployedAt = (get-date).ToUniversalTime().ToString("s")
- ps: .\build\SentryDeployment.ps1 -authToken $env:SENTRY_AUTHTOKEN -organization $env:SENTRY_ORGANIZATION -project $env:SENTRY_PROJECT -version $env:APPVEYOR_BUILD_VERSION -repository $env:APPVEYOR_REPO_NAME -commit $env:APPVEYOR_REPO_COMMIT -dateReleased $buildDeployedAt
Note: There's currently a bug in Sentry's releases api so if the case of the
APPVEYOR_REPO_NAME
value doesn't match what you've added in Sentry the request will fail. Make sure these match!