2024-02-06 05:52:35 +00:00
|
|
|
name: Publish to GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- wasm
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
concurrency: ci-${{ github.ref }}
|
|
|
|
name: Test setup-lune action
|
|
|
|
runs-on: ubuntu-latest
|
2024-02-06 05:55:34 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust Toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
- name: Install `cargo-binstall` Command
|
|
|
|
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
|
|
- name: Install Trunk
|
|
|
|
run: cargo binstall --locked trunk
|
|
|
|
- name: Compile WASM Site
|
|
|
|
run: trunk build --release
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2024-02-06 05:56:08 +00:00
|
|
|
with:
|
|
|
|
folder: build
|
2024-02-06 05:55:34 +00:00
|
|
|
|