Skip to content

Frontend

Frontend #3

Workflow file for this run

name: Frontend
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: "Rust Cache"
uses: Swatinem/rust-cache@v2
- name: "Download and install Trunk binary"
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: "Build"
run: |
cd front_end
../trunk build --release --public-url "${GITHUB_REPOSITORY#*/}"
mv dist ../dist
- name: "Deploy"
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
single-commit: true