-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1 KB
/
gh-pages.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: GitHub Pages
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install wasm-pack
uses: jetli/[email protected]
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Build lost_playground
run: wasm-pack build lost_playground
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
cache-dependency-path: ./www/yarn.lock
- name: Install JS dependencies
working-directory: ./www
run: yarn install
- name: Build website
working-directory: ./www
run: yarn run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./www/dist