Skip to content

Commit

Permalink
action changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult committed Sep 12, 2023
1 parent 3dee0e1 commit 45d591e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build mdBook Site & Deploy if Necessary
name: Build & Deploy mdBook Site

on:
# Run on all pushes -- we check for only running on deploy later
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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:
tool: [email protected],[email protected],[email protected],[email protected],[email protected]
- 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

0 comments on commit 45d591e

Please sign in to comment.