Skip to content

Commit

Permalink
Build the LTN app for web in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 26, 2023
1 parent 4daf9a8 commit 4f3a565
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Rust docs
name: Rust docs and WASM app
on:
push:
branches:
- master
- main
- wasm_ci # TODO tmp
jobs:
book:
name: Build and Deploy
Expand All @@ -14,6 +15,9 @@ jobs:
- name: Install Rust
uses: hecrj/setup-rust-action@v1

- name: Install wasm-pack
uses: jetli/[email protected]

- name: Update apt
run: sudo apt-get update
- name: Install dependencies
Expand All @@ -28,6 +32,13 @@ jobs:
mkdir -p book/book
mv target/doc book/book/rustdoc
- name: Built LTN app for web
run: |
cd web
sed -i 's/^APPS=.*/APPS=ltn/' Makefile
make release
cp -Rv build/dist ../book/book/web/
- name: Publish HTML
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 4f3a565

Please sign in to comment.