"...git@developer.sourcefind.cn:OpenDAS/lmdeploy.git" did not exist on "c3290cadcd8818deeaf9281f0494174308e04d79"
Unverified Commit 2caa84fa authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

use automatic doc upload instead of seperate job (#7567)

parent 03f2a8b7
......@@ -14,7 +14,6 @@ jobs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
repository: pytorch/vision
upload-artifact: docs
script: |
set -euo pipefail
......@@ -40,29 +39,9 @@ jobs:
pip install --progress-bar=off -r requirements.txt
echo '::endgroup::'
echo '::group::Build HTML docs'
# The runner does not have sufficient memory to run with as many processes as their are
# The runner does not have sufficient memory to run with as many processes as there are
# cores (`-j auto`). Thus, we limit to a single process (`-j 1`) here.
sed -i -e 's/-j auto/-j 1/' Makefile
make html
echo '::endgroup::'
mv build/html "${RUNNER_ARTIFACT_DIR}"
upload-preview:
if: github.event_name == 'pull_request'
needs: [build]
runs-on: [self-hosted, linux.2xlarge]
steps:
- uses: actions/download-artifact@v3
with:
name: docs
- name: Upload docs preview
uses: seemethere/upload-artifact-s3@v5
with:
retention-days: 14
s3-bucket: doc-previews
if-no-files-found: error
path: html
s3-prefix: pytorch/vision/${{ github.event.pull_request.number }}
mv build/html/* "${RUNNER_DOCS_DIR}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment