Skip to content

Commit

Permalink
Iterating on Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
keepingitneil committed Jan 11, 2024
1 parent d879342 commit 03f01e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
name: Build Docs

on:
call-publish-workflow:
with:
package_dir: 'livekit-rtc'
package_name: 'livekit'
secrets: inherit
workflow_call:
inputs:
package_dir:
required: true
type: string
docs_entrypoint:
package_name:
required: true
type: string
secrets:
Expand Down Expand Up @@ -50,20 +55,14 @@ jobs:
echo "No requiress.txt file found."
fi
- name: Debug
run: echo $REQUIREMENTS_FILE

- name: Install Requirements From Egg Info
run: python -m pip install -r $REQUIREMENTS_FILE

- name: Install Package to Document
run: python -m pip install -e ${{ inputs.package_dir }}
run: python -m pip install ${{ inputs.package_dir }}/

- name: Install pdoc
run: python -m pip install --upgrade pdoc

- name: Build Docs
run: python -m pdoc ${{ inputs.docs_entrypoint }} --docformat=google --output-dir docs
run: python -m pdoc ${{ inputs.package_name }} --docformat=google --output-dir docs

- name: S3 Upload
run: aws s3 cp docs/ s3://livekit-docs/${{ inputs.package_dir }} --recursive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rtc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ jobs:
uses: ./.github/workflows/build-docs.yml
with:
package_dir: "livekit-rtc"
docs_entrypoint: "livekit-rtc/livekit/rtc"
package_name: "livekit"
secrets: inherit

0 comments on commit 03f01e0

Please sign in to comment.