Skip to content

Commit

Permalink
Fix book publish job (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Feb 12, 2024
1 parent 11c1416 commit 1973a2f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -14,19 +13,14 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Setup mdbook-mermaid
uses: magicgh/mdbook-mermaid-action@v1
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
version: 'latest'
- name: Install mdbook-template
cache-on-failure: true
- name: Setup mdbook
run: |
mkdir mdbook-template
curl -sSL https://github.com/sgoudham/mdbook-template/releases/latest/download/mdbook-template-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-template
echo `pwd`/mdbook-template >> $GITHUB_PATH
cargo install mdbook mdbook-mermaid mdbook-template
- name: Build book
working-directory: ./book
run: mdbook build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust nightly toolchain
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust nightly toolchain
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -56,7 +56,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust nightly toolchain
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/cross-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Build and Publish Cross Images

on:
workflow_dispatch:
workflow_call:

env:
REGISTRY: ghcr.io

jobs:
build-pipelines:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,4 +36,4 @@ jobs:
context: build/${{ matrix.target }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 1973a2f

Please sign in to comment.