-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 922 Bytes
/
deploy.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
name: Deploy Snek!
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy Snek!
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up a Node.js environment
uses: actions/setup-node@v2
with:
cache: npm
node-version: 16
- name: Install Node.js dependencies
run: npm install
- name: Set up a Rust environment
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
profile: minimal
override: true
# Note that we don't cache the Rust side of things,
# because we use a nightly toolchain anyway.
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist