Skip to content

Commit f2a27a7

Browse files
committed
Upload documentation to gh-pages
1 parent a9360b8 commit f2a27a7

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
variables:
2+
- group: secrets
3+
resources:
4+
repositories:
5+
- repository: rustinfra
6+
type: github
7+
name: rust-lang/simpleinfra
8+
endpoint: rust-lang
19
trigger: ["master"]
210
pr: ["master"]
311

@@ -144,7 +152,10 @@ jobs:
144152
- script: sh ci/style.sh
145153
displayName: Check style
146154
- script: sh ci/dox.sh
147-
displayName: Generate and upload documentation
155+
displayName: Generate documentation
156+
- template: azure-configs/static-websites.yml@rustinfra
157+
parameters:
158+
deploy_dir: target/doc
148159
variables:
149160
CI: 1
150161

ci/dox.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,3 @@ dox powerpc64le powerpc64le-unknown-linux-gnu
5151
dox mips mips-unknown-linux-gnu
5252
dox mips64 mips64-unknown-linux-gnuabi64
5353
dox wasm32 wasm32-unknown-unknown
54-
55-
# If we're on travis, not a PR, and on the right branch, publish!
56-
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
57-
pip install ghp_import --install-option="--prefix=$HOME/.local"
58-
"${HOME}/.local/bin/ghp-import" -n target/doc
59-
git push -qf "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git" gh-pages
60-
fi

0 commit comments

Comments
 (0)