Skip to content

Commit

Permalink
[update_release_system] feat: ⚡ improve credentials parsing using git…
Browse files Browse the repository at this point in the history
…hub action variables
  • Loading branch information
panaxging committed Jul 5, 2024
1 parent 812f9a3 commit 3488a33
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ plugins {
id "idea"
}

ext.github_organization = 'nextflow-io'
ext.github_username = project.findProperty('github_username') ?: 'pditommaso'
ext.github_owner = project.findProperty('github_owner') ?: System.getenv('GITHUB_REPOSITORY_OWNER')
ext.github_user = project.findProperty('github_user') ?: System.getenv('GITHUB_TRIGGERING_ACTOR')
ext.github_repository = project.findProperty('github_repository') ?: System.getenv('GITHUB_REPOSITORY')
ext.github_access_token = project.findProperty('github_access_token') ?: System.getenv('GITHUB_TOKEN')
ext.github_commit_email = project.findProperty('github_commit_email') ?: '[email protected]'

jar.enabled = false

Expand Down Expand Up @@ -86,7 +86,7 @@ subprojects {
{
"version": "${project.version}",
"date": "${timestamp}",
"url": "https://github.com/${github_organization}/${project.name}/releases/download/${project.version}/${project.name}-${project.version}.zip",
"url": "https://github.com/${github_repository}/releases/download/${project.version}/${project.name}-${project.version}.zip",
"requires": "${metaFromManifest('Plugin-Requires',file('src/resources/META-INF/MANIFEST.MF'))}",
"sha512sum": "${computeSha512(zip)}"
}
Expand Down Expand Up @@ -128,8 +128,8 @@ subprojects {
"$buildDir/libs/${project.name}-${project.version}-meta.json" ]}
release = providers.provider { project.version }
repo = providers.provider { project.name }
owner = github_organization
userName = github_username
owner = github_owner
userName = github_user
authToken = github_access_token
skipExisting = true
}
Expand All @@ -143,11 +143,11 @@ classes.dependsOn subprojects.copyPluginLibs
/*
* Merge and publish the plugins index file
*/
task publishIndex( type: io.nextflow.gradle.tasks.GithubRepositoryPublisher ) {
indexUrl = 'https://github.com/nextflow-io/plugins/main/plugins.json'
repos = ['nf-sqldb']
owner = github_organization
githubUser = github_username
githubEmail = github_commit_email
githubToken = github_access_token
}
// task publishIndex( type: io.nextflow.gradle.tasks.GithubRepositoryPublisher ) {
// indexUrl = 'https://github.com/nextflow-io/plugins/main/plugins.json'
// repos =
// owner =
// githubUser =
// githubEmail =
// githubToken =
// }

0 comments on commit 3488a33

Please sign in to comment.