diff --git a/Makefile b/Makefile
index ad212ec6e..8f015ea3e 100644
--- a/Makefile
+++ b/Makefile
@@ -301,17 +301,18 @@ dep-graph:
cargo deps --optional-deps --filter wasmer-wasi wasmer-wasi-tests wasmer-kernel-loader wasmer-dev-utils wasmer-llvm-backend wasmer-emscripten wasmer-emscripten-tests wasmer-runtime-core wasmer-runtime wasmer-middleware-common wasmer-middleware-common-tests wasmer-singlepass-backend wasmer-clif-backend wasmer --manifest-path Cargo.toml | dot -Tpng > wasmer_depgraph.png
docs:
- cargo doc --features=backend-singlepass,backend-cranelift,backend-llvm,docs,wasi,managed --all --no-deps
- cd lib/runtime-c-api/ && doxygen doxyfile && cd ..
+ # cargo doc --features=backend-singlepass,backend-cranelift,backend-llvm,docs,wasi,managed --all --no-deps
+ # cd lib/runtime-c-api/ && doxygen doxyfile && cd ..
mkdir -p api-docs
- mkdir -p api-docs/c
- cp -R target/doc api-docs/rust
- cp -R lib/runtime-c-api/doc/html api-docs/c/runtime-c-api
+ mkdir -/p api-docs/c
+ # cp -R target/doc api-docs/rust
+ # cp -R lib/runtime-c-api/doc/html api-docs/c/runtime-c-api
echo '' > api-docs/index.html
- echo '' > api-docs/rust/index.html
+ # echo '' > api-docs/rust/index.html
docs-publish:
- git clone -b "gh-pages" --depth=1 https://wasmerbot:${GITHUB_DOCS_TOKEN}@github.com/wasmerio/wasmer.git api-docs-repo
+ echo $GITHUB_DOCS_TOKEN
+ git clone -b "gh-pages" --depth=1 https://wasmerbot:$(GITHUB_DOCS_TOKEN)@github.com/wasmerio/wasmer.git api-docs-repo
cp -R api-docs/* api-docs-repo/
cd api-docs-repo && git add index.html rust/* c/*
cd api-docs-repo && git commit -m "Publishing GitHub Pages ***CI***"
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index a77a9a415..19ba54bf1 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -300,9 +300,11 @@ jobs:
- bash: |
git config --global user.email "bot@wasmer.io"
git config --global user.name "wasmerbot"
+ env
make docs-publish
- # env:
- # RUST_DOCS_DIR: $(Pipeline.Workspace)/api-docs
+ env:
+ RUST_DOCS_DIR: $(Pipeline.Workspace)/api-docs
+ GITHUB_DOCS_TOKEN: $(GITHUB_DOCS_TOKEN)
# We only run the pipelines on PRs to Master
pr: