mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-05 23:34:28 +01:00
docs: test deploy github page
This commit is contained in:
44
.github/workflows/rust.yaml
vendored
44
.github/workflows/rust.yaml
vendored
@@ -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
|
||||
@@ -73,45 +73,3 @@ jobs:
|
||||
|
||||
- name: Run docs
|
||||
run: cargo doc --workspace --all-features --no-deps --document-private-items --verbose
|
||||
|
||||
|
||||
|
||||
- name: Cache mdbook installation
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cargo/bin/mdbook
|
||||
key: ${{ runner.os }}-mdbook
|
||||
|
||||
- name: Cache mdbook-mermaid installation
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cargo/bin/mdbook
|
||||
key: ${{ runner.os }}-mdbook-mermaid
|
||||
|
||||
- name: Install mdBook if not installed already
|
||||
run: |
|
||||
if [ ! -f ~/.cargo/bin/mdbook ]; then
|
||||
cargo install mdbook
|
||||
fi
|
||||
|
||||
- name: Install mdBook-mermaid if not installed already
|
||||
run: |
|
||||
if [ ! -f ~/.cargo/bin/mdbook-mermaid ]; then
|
||||
cargo install mdbook-mermaid
|
||||
fi
|
||||
|
||||
- name: Cache mdBook build
|
||||
id: mdbook-build-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./docs/book/
|
||||
key: ${{ runner.os }}-mdbook-${{ hashFiles('./docs/**') }}
|
||||
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/
|
||||
|
||||
Reference in New Issue
Block a user