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
e498036d
Unverified
Commit
e498036d
authored
Nov 20, 2020
by
Matti Picus
Committed by
GitHub
Nov 20, 2020
Browse files
add org-member context and generate a .netrc file for git push (#1049)
parent
75804859
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
.circleci/build_docs/commit_docs.sh
.circleci/build_docs/commit_docs.sh
+2
-2
.circleci/config.yml
.circleci/config.yml
+11
-0
.circleci/config.yml.in
.circleci/config.yml.in
+10
-0
.circleci/regenerate.py
.circleci/regenerate.py
+1
-0
No files found.
.circleci/build_docs/commit_docs.sh
View file @
e498036d
...
...
@@ -24,9 +24,9 @@ if [ "$target" == "master" ]; then
mkdir
-p
./_static
rm
-rf
./_static/
*
cp
-r
${
src
}
/build/html/_static/
*
./_static
git add ./_static
||
true
git add
--all
./_static
||
true
fi
git add ./
$target
||
true
git add
--all
./
$target
||
true
git config user.email
"soumith+bot@pytorch.org"
git config user.name
"pytorchbot"
# If there aren't changes, don't make a commit; push is no-op
...
...
.circleci/config.yml
View file @
e498036d
...
...
@@ -684,6 +684,16 @@ jobs:
-
attach_workspace
:
at
:
~/workspace
-
designate_upload_channel
-
run
:
name
:
Generate netrc
command
:
|
# set credentials for https pushing
# requires the org-member context
cat > ~/.netrc \<<DONE
machine github.com
login pytorchbot
password ${GITHUB_PYTORCHBOT_TOKEN}
DONE
-
checkout
-
run
:
name
:
Upload docs
...
...
@@ -785,6 +795,7 @@ workflows:
requires
:
-
binary_linux_wheel_py3.8
-
upload_docs
:
context
:
org-member
filters
:
branches
:
only
:
...
...
.circleci/config.yml.in
View file @
e498036d
...
...
@@ -684,6 +684,16 @@ jobs:
- attach_workspace:
at: ~/workspace
- designate_upload_channel
- run:
name: Generate netrc
command: |
# set credentials for https pushing
# requires the org-member context
cat > ~/.netrc \<<DONE
machine github.com
login pytorchbot
password ${GITHUB_PYTORCHBOT_TOKEN}
DONE
- checkout
- run:
name: Upload docs
...
...
.circleci/regenerate.py
View file @
e498036d
...
...
@@ -88,6 +88,7 @@ def build_doc_job(filter_branch):
def
upload_doc_job
(
filter_branch
):
job
=
{
"name"
:
"upload_docs"
,
"context"
:
"org-member"
,
"python_version"
:
"3.8"
,
"requires"
:
[
"build_docs"
,],
}
...
...
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