Skip to content

Commit 35b0c5c

Browse files
committed
Disable latest upload
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent 8fcb319 commit 35b0c5c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

packing.gradle

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -256,30 +256,6 @@ task release(type: Exec, dependsOn: [pack, dockerImage]) {
256256
gh release upload --repo nextflow-io/nextflow v$version ${launcherFile} ${nextflowAllFile}
257257
""".stripIndent()
258258

259-
if( edge )
260-
cmd += """
261-
# publish the script as the latest
262-
export AWS_ACCESS_KEY_ID=${System.env.NXF_AWS_ACCESS}
263-
export AWS_SECRET_ACCESS_KEY=${System.env.NXF_AWS_SECRET}
264-
aws s3 cp $launcherFile s3://www2.nextflow.io/releases/edge/nextflow $s3CmdOpts
265-
aws s3 cp $launcherSha1 s3://www2.nextflow.io/releases/edge/nextflow.sha1 $s3CmdOpts
266-
aws s3 cp $launcherSha256 s3://www2.nextflow.io/releases/edge/nextflow.sha256 $s3CmdOpts
267-
aws s3 cp $launcherSha256 s3://www2.nextflow.io/releases/edge/nextflow.md5 $s3CmdOpts
268-
aws s3 cp $versionFile s3://www2.nextflow.io/releases/edge/version $s3CmdOpts
269-
""".stripIndent()
270-
271-
else if( isLatest )
272-
cmd += """
273-
# publish the script as the latest
274-
export AWS_ACCESS_KEY_ID=${System.env.NXF_AWS_ACCESS}
275-
export AWS_SECRET_ACCESS_KEY=${System.env.NXF_AWS_SECRET}
276-
aws s3 cp $launcherFile s3://www2.nextflow.io/releases/latest/nextflow $s3CmdOpts
277-
aws s3 cp $launcherSha1 s3://www2.nextflow.io/releases/latest/nextflow.sha1 $s3CmdOpts
278-
aws s3 cp $launcherSha256 s3://www2.nextflow.io/releases/latest/nextflow.sha256 $s3CmdOpts
279-
aws s3 cp $launcherSha256 s3://www2.nextflow.io/releases/latest/nextflow.md5 $s3CmdOpts
280-
aws s3 cp $versionFile s3://www2.nextflow.io/releases/latest/version $s3CmdOpts
281-
""".stripIndent()
282-
283259
def temp = File.createTempFile('upload',null)
284260
temp.deleteOnExit()
285261
temp.text = cmd

0 commit comments

Comments
 (0)