Skip to content

fix: update routes to reflect GitHub pages #10

fix: update routes to reflect GitHub pages

fix: update routes to reflect GitHub pages #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: [main]
permissions:
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
timeout-minutes: 10
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Add WASM target
run: rustup target add wasm32-unknown-unknown
- name: Install trunk
run: wget -qO- https://github.com/trunk-rs/trunk/releases/download/v0.19.1/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build
run: cd nova-playground && ../trunk build --release --public-url "/nova"
- name: Setup Pages
uses: actions/configure-pages@v4
with:
enablement: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./nova-playground/dist/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3