Skip to content
Open
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
9 changes: 1 addition & 8 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ jobs:

- name: S3 Upload
run: |
BRANCH="${GITHUB_REF#refs/heads/}"
# If branch is not 0.x, upload to /v1
if [[ $BRANCH != "0.x" ]]; then
aws s3 cp docs/ s3://livekit-docs/python/v1 --recursive
# Else, upload to root, preserving the v1 directory
else
aws s3 sync docs/ s3://livekit-docs/python --exclude "v1/*" --delete
fi
aws s3 sync docs/ s3://livekit-docs/python
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need a --delete as well? to remove the older content

env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
Expand Down
Loading