Skip to content

Commit

Permalink
update book.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed Jun 14, 2024
1 parent 3d35c4e commit e4d1891
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Documentation and mdbook related jobs.

name: book

on:
push:
branches:
- '**'
branches: [main]
pull_request:
branches:
- '**'
branches: [main]
merge_group:

jobs:
Expand All @@ -32,7 +32,6 @@ jobs:
- name: Run tests
run: mdbook test
working-directory: ./book

lint:
runs-on: ubuntu-latest
Expand All @@ -52,7 +51,6 @@ jobs:
- name: Run linkcheck
run: mdbook-linkcheck --standalone
working-directory: ./book

build:
runs-on: ubuntu-latest
Expand All @@ -78,15 +76,14 @@ jobs:

- name: Build book
run: mdbook build
working-directory: ./book

- name: Build docs
run: cargo doc
run: cargo docs
env:
# Keep in sync with ./ci.yml:jobs.docs
RUSTDOCFLAGS:
--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page
-Zunstable-options
# Keep in sync with ./ci.yml:jobs.docs
RUSTDOCFLAGS:
--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page
-Zunstable-options

- name: Move docs to book folder
run: |
Expand Down Expand Up @@ -135,4 +132,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit e4d1891

Please sign in to comment.