Skip to content

Commit b60b557

Browse files
committed
test web build
1 parent 64f7994 commit b60b557

File tree

8 files changed

+655
-1
lines changed

8 files changed

+655
-1
lines changed

.github/web.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
deploy:
14+
strategy:
15+
matrix:
16+
toolchain: [nightly]
17+
runs-on: ubuntu-20.04
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/cache@v2
23+
with:
24+
path: |
25+
~/.cargo/bin/
26+
~/.cargo/registry/index/
27+
~/.cargo/registry/cache/
28+
~/.cargo/git/db/
29+
target/
30+
key: ${{ runner.os }}-cargo-build-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }}
31+
- uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: ${{ matrix.toolchain }}
34+
override: true
35+
- uses: jetli/[email protected]
36+
- run: cargo install --force cargo-make
37+
- run: cd crates/logic && cargo make web && cd - && rm ./crates/web/public/pkg/.gitignore
38+
- uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./crates/web/public

0 commit comments

Comments
 (0)