Skip to content

Commit

Permalink
ci: build with local binary
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Jan 14, 2024
1 parent 9330468 commit d3bc189
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,33 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: setup
- uses: actions/checkout@master

- name: Cahce
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Setup toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install mdbook-embedify
run: |
cd example && cp assets/bin/* /usr/local/bin
chmod u+x /usr/local/bin/mdbook* && mdbook build
cargo install mdbook-embedify --path .
cp assets/bin/* /usr/local/bin && chmod u+x /usr/local/bin/mdbook*
- name: Build book
run: mdbook build example

- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Binary file modified example/assets/bin/mdbook
Binary file not shown.
Binary file removed example/assets/bin/mdbook-embedify
Binary file not shown.

0 comments on commit d3bc189

Please sign in to comment.