diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2023-02-24 21:58:26 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:35:25 +0100 |
| commit | b621bcf36a136fbc4c1017d2f4ca1882d49df34a (patch) | |
| tree | c0ad27429139283f971f48e8e2b9cf0cd3f123ac /.github | |
| parent | 5ca63f08d643f63cdc03baa2c3901c7b3e1140a0 (diff) | |
CI: Store and reuse API docs
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50807a8..41731a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -353,9 +353,21 @@ jobs: lychee --offline --format detailed $td/api/rtic_monotonics/ lychee --offline --format detailed $td/api/rtic_time/ + - name: Archive the API docs + run: | + cp -r target/doc apidocs + tar -cf apidocs.tar apidocs + + - name: Store the API docs + uses: actions/upload-artifact@v3 + with: + name: apidocs + path: apidocs.tar + # Build the books mdbook: name: build mdbook + needs: docs runs-on: ubuntu-22.04 steps: - name: Checkout @@ -380,12 +392,21 @@ jobs: shell: 'script --return --quiet --command "bash {0}"' run: cd book/en && if mdbook build |& tee /dev/tty | grep "\[ERROR\]"; then exit 1; else exit 0; fi + - name: Download built API docs + uses: actions/download-artifact@v3 + with: + name: apidocs + + - name: Extract the API docs + run: tar -xf apidocs + - name: Check links run: | td=$(mktemp -d) mkdir $td/book cp -r book/en/book $td/book/en cp LICENSE-* $td/book/en + cp -r apidocs/ $td/api lychee --offline --format detailed $td/book/en/ |
