-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 993 Bytes
/
rust.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
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'v0.10.0'
- name: Build wasm-pack
run: wasm-pack build
working-directory: ./kr-engne
- name: Install node packages
run: npm install
working-directory: ./kr-engne/www
- name: Build dist
run: npm run build
working-directory: ./kr-engne/www
- name: Deploy dist to Github Pages
uses: JamesIves/[email protected]
if: ${{ github.ref == 'refs/heads/master' }}
with:
branch: master
folder: kr-engne/www/dist
repository-name: kilork/kilork.github.io
token: ${{ secrets.PAT }}
target-folder: kr-engne
clean: true