Skip to content

fix: use span.span() on a ::validate call to emit a Rich error #32

fix: use span.span() on a ::validate call to emit a Rich error

fix: use span.span() on a ::validate call to emit a Rich error #32

name: Deploy Raflesia Web into GitHub pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Pages
uses: actions/configure-pages@v3
# - name: Setup Rust
# uses: ATiltedTree/[email protected]
# with:
# rust-version: stable
# targets: wasm32-unknown-unknown
- name: Setup Rust wasm32-unknown-unknown target
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install trunk
uses: jetli/[email protected]
- name: Build with trunk
run: cd rafflesia-web && trunk build --public-url rafflesia/ --release
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: rafflesia-web/dist/
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2