Skip to content

Update GitHub Actions #41

Update GitHub Actions

Update GitHub Actions #41

Workflow file for this run

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_113/binaryen-version_113-x86_64-linux.tar.gz'
tar xf binaryen-version_113-x86_64-linux.tar.gz
rm binaryen-version_113-x86_64-linux.tar.gz
echo "$(pwd)/binaryen-version_113/bin" >> $GITHUB_PATH
- name: Build
run: ./build.sh
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
single-commit: true