Skip to content

Commit

Permalink
support private repository publishes (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Jan 15, 2025
1 parent b344877 commit 55f5768
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55f5768

Please sign in to comment.