Skip to content

Commit

Permalink
Clean the RUNNER_ARTIFACTS_DIR before copying the doc build artifacts (
Browse files Browse the repository at this point in the history
…pytorch#1103)

Summary:
Pull Request resolved: pytorch#1103

Remove everything from the RUNNER_ARTIFACT_DIR before uploading the new doc build.
Fixes pytorch#1093

Reviewed By: huydhn, dbort

Differential Revision: D50661683

fbshipit-source-id: 7e34bc8b03ceeb744f16842d40a0e65cab5ecf95
  • Loading branch information
svekars authored and facebook-github-bot committed Oct 26, 2023
1 parent c6e6ac1 commit 8eb9835
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
set -eux
# clean up the ${RUNNER_DOCS_DIR} if exists:
rm -rf "${RUNNER_DOCS_DIR}"/*
# clean up the ${RUNNER_ARTIFACT_DIR} if exists:
rm -rf "${RUNNER_ARTIFACT_DIR}"/*
# Build docset:
cd docs
doxygen source/Doxyfile
Expand All @@ -64,10 +69,10 @@ jobs:
cp -rf docs/_build/html/* "${RUNNER_DOCS_DIR}"
# Sometimes the artifact directory already contains an "html" subdir.
rm -rf "${RUNNER_ARTIFACT_DIR}/html"
mv docs/_build/html "${RUNNER_ARTIFACT_DIR}"
ls -R "${RUNNER_ARTIFACT_DIR}"/*/*.html
# Enable preview later. Previews are available publicly
#
# upload-preview:
Expand Down

0 comments on commit 8eb9835

Please sign in to comment.