forked from space-wizards/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 836 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Test mdBook Build & Upload Artifact
on:
# Run on only PR, no gh pages stuff
pull_request:
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
- name: Install mdbook & plugins
uses: taiki-e/[email protected]
with:
- name: Build with mdBook
run: mdbook build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Built Site
path: ./book/html
retention-days: 3