constgulp=require('gulp')constcreateReleaseManager=require('gulp-sentry-release-manager')constcountries=['ph']countries.map(country=>{constreleaseManager=createReleaseManager({org: 'awesome',project: `project-${country}`,apiKey: 'xxx',version: '0.0.1',host: 'https://sentry.awesome.io'})gulp.task(`create-release-${country}`,releaseManager.create)gulp.task(`remove-release-${country}`,releaseManager.remove)gulp.task(`upload-${country}`,function(){// `base` is important, is relative to your CDN URLgulp.src('static/js/*.map',{base: 'static/'}).pipe(releaseManager.upload())})})gulp.task('default',['create-release-ph'])
Options
host - host name of Sentry servers. Default = https://sentry.io.
org - organization slug (required)
project - project slug (required)
apiKey - api key with project:releases permission (required)