Skip to content

Commit

Permalink
support private repository publishes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Jan 15, 2025
1 parent 8c46022 commit 59dff70
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 @@ -19,13 +19,24 @@ 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
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 59dff70

Please sign in to comment.