-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (33 loc) · 1.11 KB
/
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
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install wasi-sdk
run: |
wget --no-verbose 'https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz'
tar xf wasi-sdk-12.0-linux.tar.gz
rm wasi-sdk-12.0-linux.tar.gz
echo "$(pwd)/wasi-sdk-12.0/bin" >> $GITHUB_PATH
- name: Install binaryen
run: |
wget --no-verbose 'https://github.com/WebAssembly/binaryen/releases/download/version_119/binaryen-version_119-x86_64-linux.tar.gz'
tar xf binaryen-version_119-x86_64-linux.tar.gz
rm binaryen-version_119-x86_64-linux.tar.gz
echo "$(pwd)/binaryen-version_119/bin" >> $GITHUB_PATH
- name: Build
run: ./build.sh
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
branch: gh-pages
folder: build
single-commit: true