mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
ci: trim docs job
This commit is contained in:
34
.github/workflows/book.yml
vendored
34
.github/workflows/book.yml
vendored
@@ -20,57 +20,43 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install bun
|
- name: Install bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: v1.2.23
|
bun-version: v1.3.4
|
||||||
|
- name: Install dependencies
|
||||||
- name: Install Playwright browsers
|
|
||||||
# Required for rehype-mermaid to render Mermaid diagrams during build
|
|
||||||
run: |
|
run: |
|
||||||
cd docs/vocs/
|
cd docs/vocs/
|
||||||
bun i
|
bun i
|
||||||
|
# Required for rehype-mermaid to render Mermaid diagrams during build
|
||||||
npx playwright install --with-deps chromium
|
npx playwright install --with-deps chromium
|
||||||
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: Install Rust nightly
|
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
|
||||||
|
|
||||||
- uses: mozilla-actions/sccache-action@v0.0.9
|
- uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Build docs
|
with:
|
||||||
run: cd docs/vocs && bash scripts/build-cargo-docs.sh
|
cache-on-failure: true
|
||||||
|
|
||||||
- name: Build Vocs
|
- name: Build Vocs
|
||||||
run: |
|
run: cd docs/vocs/ && bun run build
|
||||||
cd docs/vocs/ && bun run build
|
|
||||||
echo "Vocs Build Complete"
|
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
|
if: github.ref_name == 'main' && github.event_name == 'push'
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
if: github.ref_name == 'main' && github.event_name == 'push'
|
||||||
uses: actions/upload-pages-artifact@v4
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: "./docs/vocs/docs/dist"
|
path: "./docs/vocs/docs/dist"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
# Only deploy if a push to main
|
|
||||||
if: github.ref_name == 'main' && github.event_name == 'push'
|
if: github.ref_name == 'main' && github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|
||||||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user