Skip to content

Simplify build and workflow #40

Simplify build and workflow

Simplify build and workflow #40

Workflow file for this run

name: Deploy site

Check failure on line 1 in .github/workflows/pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pages.yml

Invalid workflow file

(Line: 15, Col: 3): The workflow must contain at least one job with no dependencies.
on:
push:
branches: [main]
workflow_dispatch: {}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install JS deps for npx
run: npm ci
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: taiki-e/install-action@v2
with:
tool: cargo-binstall
- name: Install dioxus-cli
run: cargo binstall -y dioxus-cli
- name: Bundle site
run: dx bundle --platform web --release --locked --out-dir site
- name: Move from public dir
run: mv site/public/* site
- name: SPA fallback for GitHub Pages
run: cp site/index.html site/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4