Skip to content

meme

meme #21

Workflow file for this run

name: deploy
permissions:
id-token: write
pages: write
on:
workflow_dispatch:
push:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal
- name: Install trunk
uses: jetli/trunk-action@v0.1.0
with:
version: 'latest'
- name: Build
run: trunk build --release --public-url /
- name: Setup Pages
uses: actions/configure-pages@v3
- name: 404 fallback
run: cp ./dist/index.html ./dist/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2