Skip to content

Fix 0.7 typos and set consistent slug for suspense.md (#588) #558

Fix 0.7 typos and set consistent slug for suspense.md (#588)

Fix 0.7 typos and set consistent slug for suspense.md (#588) #558

Workflow file for this run

name: github pages
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-deploy:
runs-on: blacksmith-4vcpu-ubuntu-2404
env:
CARGO_INCREMENTAL: 1
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
version: 1.0
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
cache-on-failure: "false"
- uses: cargo-bins/cargo-binstall@main
- name: Install CLI
run: cargo binstall dioxus-cli -y --force
- name: Build
run: cd packages/docsite && dx build --verbose --trace --web --fullstack true --features fullstack,production --release --ssg
- name: Generate search index
run: target/dx/dioxus_docs_site/release/web/dioxus_docs_site --generate-search-index
- name: Copy output
run: cp -r target/dx/dioxus_docs_site/release/web/public docs
- name: Add gh pages 404
run: cp docs/index.html docs/404.html
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: .
clean: true
single-commit: true