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
torchani
Commits
6dba0bee
Unverified
Commit
6dba0bee
authored
Dec 16, 2018
by
Gao, Xiang
Committed by
GitHub
Dec 16, 2018
Browse files
Make docs deploy work (#155)
parent
dded5be0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
azure/deploy-docs.yml
azure/deploy-docs.yml
+16
-5
No files found.
azure/deploy-docs.yml
View file @
6dba0bee
queue
:
queue
:
name
:
Hosted Ubuntu
1604
name
:
Hosted Ubuntu
1604
timeoutInMinutes
:
3
00
timeoutInMinutes
:
60
00
variables
:
variables
:
python.version
:
'
3.7'
python.version
:
'
3.7'
trigger
:
batch
:
true
branches
:
include
:
-
master
pr
:
none
steps
:
steps
:
-
task
:
UsePythonVersion@0
-
task
:
UsePythonVersion@0
...
@@ -18,14 +26,17 @@ steps:
...
@@ -18,14 +26,17 @@ steps:
-
script
:
'
sphinx-build
docs
build'
-
script
:
'
sphinx-build
docs
build'
displayName
:
Build documents
displayName
:
Build documents
-
script
:
'
echo
$(deploy_privatekey)
>
~/.ssh/id_rsa
&&
echo
$(deploy_pubkey)
>
~/.ssh/id_rsa.pub'
-
script
:
'
mkdir
-p
~/.ssh
&&
echo
$(deploy_privatekey)
|
base64
-d
>
~/.ssh/id_rsa
&&
chmod
0600
~/.ssh/id_rsa
&&
echo
$(deploy_pubkey)
>
~/.ssh/id_rsa.pub'
displayName
:
Set up deploy keys
displayName
:
Set up deploy keys
-
script
:
'
git
clone
git@github.com:aiqm/torchani-test-repo.git
deploy_dir
-b
gh-pages'
-
script
:
'
ssh-keyscan
-t
rsa
github.com
>>
~/.ssh/known_hosts
&&
git
config
--global
user.email
"zasdfgbnm-bot@example.com"
&&
git
config
--global
user.name
"zasdfgbnm-bot"'
displayName
:
Clone old gh-pages
displayName
:
Set up github
-
script
:
'
git
clone
git@github.com:aiqm/torchani.git
deploy_dir
-b
gh-pages'
displayName
:
Clone gh-pages repository
-
script
:
'
rm
-rf
deploy_dir/*
&&
cp
-r
build/*
deploy_dir'
-
script
:
'
rm
-rf
deploy_dir/*
&&
cp
-r
build/*
deploy_dir'
displayName
:
Copy
new files
displayName
:
Replace with
new files
-
script
:
'
cd
deploy_dir
&&
git
add
.
&&
git
commit
-m
"update"
&&
git
push'
-
script
:
'
cd
deploy_dir
&&
git
add
.
&&
git
commit
-m
"update"
&&
git
push'
displayName
:
Deploy
displayName
:
Deploy
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