Skip to content

fix deployment pipeline #7

fix deployment pipeline

fix deployment pipeline #7

Workflow file for this run

name: "Deploy to GitHub Pages"
on:
push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install wasm
run: cargo install wasm-pack
- name: Build wasm
run: cd wasm && wasm-pack build --target web --out-name wasm --out-dir ../web/wasm
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: "22"
- name: Install dependencies
run: cd web && yarn
- name: Build
run: cd web && yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./web/dist
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@v4