diff --git a/actions/publish/action.yml b/actions/publish/action.yml index 3aeed17..67aeb52 100644 --- a/actions/publish/action.yml +++ b/actions/publish/action.yml @@ -23,14 +23,25 @@ runs: using: "composite" steps: - id: repo-basename + if: ${{ github.repository.private == false }} shell: bash run: 'echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT' - - name: Build documentation + + - name: Build public documentation + if: ${{ github.repository.private == false }} uses: elastic/docs-builder@main continue-on-error: ${{ inputs.continue-on-error == 'true' }} with: prefix: '${{ steps.repo-basename.outputs.value }}' strict: ${{ inputs.strict }} + + - name: Build private documentation + if: ${{ github.repository.private == true }} + uses: elastic/docs-builder@main + continue-on-error: ${{ inputs.continue-on-error == 'true' }} + with: + strict: ${{ inputs.strict }} + - name: Setup Pages id: pages uses: actions/configure-pages@v5.0.0