Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
2caa84fa
"...git@developer.sourcefind.cn:OpenDAS/lmdeploy.git" did not exist on "c3290cadcd8818deeaf9281f0494174308e04d79"
Unverified
Commit
2caa84fa
authored
May 09, 2023
by
Philip Meier
Committed by
GitHub
May 09, 2023
Browse files
use automatic doc upload instead of seperate job (#7567)
parent
03f2a8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
23 deletions
+2
-23
.github/workflows/docs.yml
.github/workflows/docs.yml
+2
-23
No files found.
.github/workflows/docs.yml
View file @
2caa84fa
...
...
@@ -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}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment