Skip to content

Commit

Permalink
fix: Release latest on main only
Browse files Browse the repository at this point in the history
  • Loading branch information
sachahu1 committed Aug 8, 2024
1 parent 8ff7b58 commit 13568f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-and-release-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
poetry run sphinx-build -M html docs/source/ docs/build
aws s3 sync docs/build/html ${{ env.DOCS_UPLOAD_URI }}/pages/v$(poetry version --short) --delete
aws s3 sync docs/build/html ${{ env.DOCS_UPLOAD_URI }}/latest --delete
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
aws s3 sync docs/build/html ${{ env.DOCS_UPLOAD_URI }}/latest --delete
fi
rm -rf docs/build

0 comments on commit 13568f2

Please sign in to comment.