Skip to content

ci: use launchdarkly publish docs action #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/actions/publish-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ inputs:
workspace_path:
description: 'The workspace to publish docs for'
required: true
token:
description: 'Token to use for publishing.'
required: true
runs:
using: composite
steps:
# We put the github pages in another directory.
- uses: actions/checkout@v3
- uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages-v1.0.1
name: 'Publish to Github pages'
with:
path: gh-pages
ref: gh-pages
- name: Publish Docs
shell: bash
run: |
echo "Publishing docs for: $WORKSPACE"
./scripts/publish-doc.sh $WORKSPACE
env:
WORKSPACE: ${{ inputs.workspace_path }}
docs_path: ${{ inputs.workspace_path }}/docs
output_path: ${{ inputs.workspace_path }}/docs
github_token: ${{ inputs.token }}
1 change: 1 addition & 0 deletions .github/workflows/manual-publish-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ jobs:
uses: ./.github/actions/publish-docs
with:
workspace_path: ${{ inputs.workspace_path }}
token: ${{secrets.GITHUB_TOKEN}}
54 changes: 0 additions & 54 deletions scripts/publish-doc.sh

This file was deleted.