@@ -9,7 +9,10 @@ import {Buffer} from 'buffer'
99import { Octokit } from '@octokit/rest'
1010import toml from 'toml'
1111
12- const RELEASE_BOT_WEBHOOK_URL = 'https://spin-plugin-releaser.fermyon.app'
12+ // until https://github.com/fermyon/spin/issues/2905 can be fixed/deployed
13+ // on Fermyon cloud, use the deployment on my personal k8s cluster.
14+ // const RELEASE_BOT_WEBHOOK_URL = 'https://spin-plugin-releaser.fermyon.app'
15+ const RELEASE_BOT_WEBHOOK_URL = 'https://spinpluginreleasebot.rajatjindal.com'
1316
1417interface MustacheView {
1518 TagName : string
@@ -139,17 +142,17 @@ async function run(): Promise<void> {
139142 } )
140143 }
141144
142- if ( tagName === 'canary' ) {
143- core . info ( 'uploading asset to canary release' )
144- await octokit . rest . repos . uploadReleaseAsset ( {
145- owner : github . context . repo . owner ,
146- repo : github . context . repo . repo ,
147- release_id : release . id ,
148- name : `${ manifest . name } .json` ,
149- data : rendered
150- } )
145+ core . info ( 'uploading plugin json file as an asset to release' )
146+ await octokit . rest . repos . uploadReleaseAsset ( {
147+ owner : github . context . repo . owner ,
148+ repo : github . context . repo . repo ,
149+ release_id : release . id ,
150+ name : `${ manifest . name } .json` ,
151+ data : rendered
152+ } )
151153
152- core . info ( `added ${ manifest . name } .json file to release ${ tagName } ` )
154+ core . info ( `added ${ manifest . name } .json file to release ${ tagName } ` )
155+ if ( tagName === 'canary' ) {
153156 return
154157 }
155158
0 commit comments