Skip to content

Commit

Permalink
docs: test deploy github page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Sep 8, 2024
1 parent 8005034 commit fbffa09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1,910 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-build-${{ hashFiles('./Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Cache Nextest installation
Expand Down Expand Up @@ -109,9 +109,13 @@ jobs:
restore-keys: |
${{ runner.os }}-mdbook-
- name: Build the book
run: mdbook build ./docs/

- name: Build the book
if: steps.mdbook-build-cache.outputs.cache-hit != 'true'
run: mdbook build ./docs/

- name: Deploy book to GitHub Pages
if: github.ref == 'refs/heads/main' # Deploy only when PR is merged to main
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book/
Loading

0 comments on commit fbffa09

Please sign in to comment.