mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
8e43858be1
As CL:3423291 and CL:3428606 changed the path to store generated GitHub pages contents in, we needed to chage it for cargo-doc as well. BUG=none TEST=check in my local GitHub repo Change-Id: I27ae705c99968c060ede3ee514792d8ac1b7975e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3479038 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
36 lines
878 B
YAML
36 lines
878 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: 'latest'
|
|
- name: Install Dependencies
|
|
run: |
|
|
./tools/install-deps
|
|
- name: Run mdbook
|
|
run: |
|
|
mkdir -p docs/target/
|
|
mdbook build docs/book/ --dest-dir ../target/
|
|
- name: Run cargo doc
|
|
run: |
|
|
git submodule update --init
|
|
./tools/cargo-doc --target-dir ./docs/target/html/
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/target/html/
|