Update GitHub Actions #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |