Skip to content

Commit 0a311e9

Browse files
authored
ci: use launchdarkly publish docs action (#332)
Updates the publish docs workflow + action to use the launchdarkly shared action.
1 parent 95a81cb commit 0a311e9

File tree

3 files changed

+9
-65
lines changed

3 files changed

+9
-65
lines changed

.github/actions/publish-docs/action.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ inputs:
55
workspace_path:
66
description: 'The workspace to publish docs for'
77
required: true
8+
token:
9+
description: 'Token to use for publishing.'
10+
required: true
811
runs:
912
using: composite
1013
steps:
11-
# We put the github pages in another directory.
12-
- uses: actions/checkout@v3
14+
- uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages-v1.0.1
15+
name: 'Publish to Github pages'
1316
with:
14-
path: gh-pages
15-
ref: gh-pages
16-
- name: Publish Docs
17-
shell: bash
18-
run: |
19-
echo "Publishing docs for: $WORKSPACE"
20-
./scripts/publish-doc.sh $WORKSPACE
21-
env:
22-
WORKSPACE: ${{ inputs.workspace_path }}
17+
docs_path: ${{ inputs.workspace_path }}/docs
18+
output_path: ${{ inputs.workspace_path }}/docs
19+
github_token: ${{ inputs.token }}

.github/workflows/manual-publish-doc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ jobs:
3434
uses: ./.github/actions/publish-docs
3535
with:
3636
workspace_path: ${{ inputs.workspace_path }}
37+
token: ${{secrets.GITHUB_TOKEN}}

scripts/publish-doc.sh

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)