name: Push documentation
on:
  push:
    branches:
      - master
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: 11
      # Cache
      - name: Cache .gradle/caches
        uses: actions/cache@v1
        with:
          path: ~/.gradle/caches
          key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
          restore-keys: ${{ runner.os }}-gradle-cache-
      - name: Cache .gradle/wrapper
        uses: actions/cache@v1
        with:
          path: ~/.gradle/wrapper
          key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
          restore-keys: ${{ runner.os }}-gradle-wrapper-
      - name: Combine documentation
        uses: eskatos/gradle-command-action@v1
        with:
          build-root-directory: docs
          arguments: --console=plain -q combineDocs
      - name: Publish documentation
        uses: eskatos/gradle-command-action@v1
        with:
          build-root-directory: docs
          arguments: |
            --console=plain --info :antora:publishDocs :gh-pages:publishDocs \
            -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GITHUB_PUBLISH_USER }} \
            -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GITHUB_PUBLISH_KEY }} \
            -Dorg.ajoberstar.grgit.auth.force=hardcoded
name: Push documentation
on:
  push:
    branches:
      - master
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-java@v1
        with:
          java-version: 11
      # Cache
      - name: Cache .gradle/caches
        uses: actions/cache@v1
        with:
          path: ~/.gradle/caches
          key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
          restore-keys: ${{ runner.os }}-gradle-cache-
      - name: Cache .gradle/wrapper
        uses: actions/cache@v1
        with:
          path: ~/.gradle/wrapper
          key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
          restore-keys: ${{ runner.os }}-gradle-wrapper-
      - name: Combine documentation
        uses: eskatos/gradle-command-action@v1
        with:
          build-root-directory: docs
          arguments: --console=plain -q combineDocs
      - name: Publish documentation
        uses: eskatos/gradle-command-action@v1
        with:
          build-root-directory: docs
          arguments: "--console=plain --info :antora:publishDocs :gh-pages:publishDocs
          -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GITHUB_PUBLISH_USER }}
          -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GITHUB_PUBLISH_KEY }}
          -Dorg.ajoberstar.grgit.auth.force=hardcoded"

Remove \ in multiline yaml
Remove \ in multiline yaml
