asciidoctor / asciidoctor-gradle-plugin

A Gradle plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
https://asciidoctor.github.io/asciidoctor-gradle-plugin/
Apache License 2.0
283 stars 120 forks source link

Use '\' to chain arguments in doc publication pipeline #716

Closed abelsromero closed 4 months ago

abelsromero commented 4 months ago

Completing https://github.com/asciidoctor/asciidoctor-gradle-plugin/pull/708

From the error in CI we can infer the arguments are interpreted as independent statements.

/home/runner/work/_temp/f899399a-9ce7-4712-b5d6-6c9ed60e3894.sh: line 3: -Dorg.ajoberstar.grgit.auth.username=: command not found
abelsromero commented 4 months ago

I am proceeding since I was granted permission some time ago :crossed_fingers:

abelsromero commented 4 months ago

Publication is not working

Task ':gh-pages:publishDocs' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
not-on-travis-ci is not a match. Push skipped.

Seems we need to update how we check for the branch and check we are in CI https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/131bc74875eca592319e6ca0200466ec40df4749/docs/gh-pages/build.gradle#L6