Skip to content

Commit 55f5768

Browse files
authored
support private repository publishes (#213)
1 parent b344877 commit 55f5768

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

actions/publish/action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,25 @@ runs:
2323
using: "composite"
2424
steps:
2525
- id: repo-basename
26+
if: ${{ github.repository.private == false }}
2627
shell: bash
2728
run: 'echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT'
28-
- name: Build documentation
29+
30+
- name: Build public documentation
31+
if: ${{ github.repository.private == false }}
2932
uses: elastic/docs-builder@main
3033
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
3134
with:
3235
prefix: '${{ steps.repo-basename.outputs.value }}'
3336
strict: ${{ inputs.strict }}
37+
38+
- name: Build private documentation
39+
if: ${{ github.repository.private == true }}
40+
uses: elastic/docs-builder@main
41+
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
42+
with:
43+
strict: ${{ inputs.strict }}
44+
3445
- name: Setup Pages
3546
id: pages
3647
uses: actions/[email protected]

0 commit comments

Comments
 (0)