Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

rm fmt

rm fmt #116

Workflow file for this run

name: Deploy to Netlify
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Install Dioxus CLI
run: cargo install dioxus-cli
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
dist
key: ${{ runner.os }}-dioxus-web-${{ hashFiles('**/Cargo.lock', '**/*.rs') }}
restore-keys: |
${{ runner.os }}-dioxus-web-
- name: Build for web
run: dx build --release --platform web
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
run: netlify deploy --prod --dir=dist --site=$NETLIFY_SITE_ID
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}