Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideD committed Sep 18, 2024
1 parent 0c7b52c commit 0eae71b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ def cloneDocsWebsiteTask = tasks.register( 'cloneDocsWebsite', Exec ) {
// Assure that the buildDir exists. Otherwise this task will fail.
dependsOn compileJava
workingDir project.layout.buildDirectory
commandLine 'git', 'clone', docPublishRepoUri, '-b', docPublishBranch, '--sparse', '--depth', '1', 'docs-website'
executeGitCommand( 'clone', docPublishRepoUri, '-b', docPublishBranch, '--sparse', '--depth', '1', 'docs-website' )
}

def sparseCheckoutDocumentationTask = tasks.register( 'sparseCheckoutDocumentation', Exec ) {
dependsOn cloneDocsWebsiteTask
workingDir project.layout.buildDirectory.dir( "docs-website" )
commandLine 'git', 'sparse-checkout', 'set', docWebsiteRelativePath
executeGitCommand( 'sparse-checkout', 'set', docWebsiteRelativePath )
}

/**
Expand Down Expand Up @@ -163,20 +163,20 @@ def updateDocumentationTask = tasks.register( 'updateDocumentation' ) {

def stageDocChangesTask = tasks.register( 'stageDocChanges', Exec ) {
workingDir project.layout.buildDirectory.dir( "docs-website" )
commandLine 'git', 'add', '-A', '.'
executeGitCommand( 'add', '-A', '.' )
}

def commitDocChangesTask = tasks.register( 'commitDocChanges', Exec ) {
dependsOn stageDocChangesTask
workingDir project.layout.buildDirectory.dir( "docs-website" )
commandLine 'git', 'commit', '-m', "[HR] Hibernate Reactive documentation for ${projectVersion}"
executeGitCommand( 'git', 'commit', '-m', "[HR] Hibernate Reactive documentation for ${projectVersion}" )
}

def pushDocChangesTask = tasks.register( 'pushDocChanges', Exec ) {
description "Push documentation changes on the remote repository"
dependsOn commitDocChangesTask
workingDir project.layout.buildDirectory.dir( "docs-website" )
commandLine 'git', 'push', '--atomic', 'origin', docPublishBranch
executeGitCommand( 'git', 'push', '--atomic', 'origin', docPublishBranch )
}

def uploadDocumentationTask = tasks.register( 'uploadDocumentation' ) {
Expand Down

0 comments on commit 0eae71b

Please sign in to comment.