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
Torchaudio
Commits
79c97fb0
"examples/pytorch/argo/ogb_example.py" did not exist on "74f01405337f861c38c55d9a2e528600583ae30b"
Unverified
Commit
79c97fb0
authored
Dec 15, 2020
by
Matti Picus
Committed by
GitHub
Dec 15, 2020
Browse files
Remove checkout step from doc upload (#1091)
parent
3691b8ef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
.circleci/build_docs/commit_docs.sh
.circleci/build_docs/commit_docs.sh
+4
-3
.circleci/config.yml
.circleci/config.yml
+4
-4
.circleci/config.yml.in
.circleci/config.yml.in
+4
-4
No files found.
.circleci/build_docs/commit_docs.sh
View file @
79c97fb0
...
...
@@ -5,7 +5,7 @@ set -ex
if
[
"
$2
"
==
""
]
;
then
echo
call as
"
$0
"
"<src>"
"<target branch>"
echo
where src is the built documentation and
echo
where src is the
root of the
built documentation
git checkout
and
echo
branch should be
"master"
or
"1.7"
or so
exit
1
fi
...
...
@@ -15,14 +15,15 @@ target=$2
echo
"committing docs from
${
src
}
to
${
target
}
"
pushd
$src
git checkout gh-pages
mkdir
-p
./
"
${
target
}
"
rm
-rf
./
"
${
target
}
"
/
*
cp
-r
"
${
src
}
/build/html/"
*
./
"
$target
"
cp
-r
"
${
src
}
/
docs/
build/html/"
*
./
"
$target
"
if
[
"
${
target
}
"
==
"master"
]
;
then
mkdir
-p
./_static
rm
-rf
./_static/
*
cp
-r
"
${
src
}
/build/html/_static/"
*
./_static
cp
-r
"
${
src
}
/
docs/
build/html/_static/"
*
./_static
git add
--all
./_static
||
true
fi
git add
--all
./
"
${
target
}
"
||
true
...
...
.circleci/config.yml
View file @
79c97fb0
...
...
@@ -662,7 +662,6 @@ jobs:
steps
:
-
attach_workspace
:
at
:
~/workspace
-
designate_upload_channel
-
checkout
-
run
:
name
:
Install pytorch-audio
...
...
@@ -671,7 +670,7 @@ jobs:
name
:
Build docs
command
:
.circleci/build_docs/build_docs.sh
-
persist_to_workspace
:
root
:
docs
root
:
./
paths
:
-
"
*"
...
...
@@ -683,7 +682,6 @@ jobs:
steps
:
-
attach_workspace
:
at
:
~/workspace
-
designate_upload_channel
-
run
:
name
:
Generate netrc
command
:
|
...
...
@@ -694,13 +692,15 @@ jobs:
login pytorchbot
password ${GITHUB_PYTORCHBOT_TOKEN}
DONE
-
checkout
-
run
:
name
:
Upload docs
command
:
|
# Don't use "checkout" step since it uses ssh, which cannot git push
# https://circleci.com/docs/2.0/configuration-reference/#checkout
set -ex
echo $PWD
ls ~/workspace
ls ~/workspace/doc
tag=${CIRCLE_TAG:1:5}
target=${tag:-master}
.circleci/build_docs/commit_docs.sh ~/workspace $target
...
...
.circleci/config.yml.in
View file @
79c97fb0
...
...
@@ -662,7 +662,6 @@ jobs:
steps:
- attach_workspace:
at: ~/workspace
- designate_upload_channel
- checkout
- run:
name: Install pytorch-audio
...
...
@@ -671,7 +670,7 @@ jobs:
name: Build docs
command: .circleci/build_docs/build_docs.sh
- persist_to_workspace:
root:
docs
root:
./
paths:
- "*"
...
...
@@ -683,7 +682,6 @@ jobs:
steps:
- attach_workspace:
at: ~/workspace
- designate_upload_channel
- run:
name: Generate netrc
command: |
...
...
@@ -694,13 +692,15 @@ jobs:
login pytorchbot
password ${GITHUB_PYTORCHBOT_TOKEN}
DONE
- checkout
- run:
name: Upload docs
command: |
# Don't use "checkout" step since it uses ssh, which cannot git push
# https://circleci.com/docs/2.0/configuration-reference/#checkout
set -ex
echo $PWD
ls ~/workspace
ls ~/workspace/doc
tag=${CIRCLE_TAG:1:5}
target=${tag:-master}
.circleci/build_docs/commit_docs.sh ~/workspace $target
...
...
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