Skip to content

upgrade to latest version of dioxus #110

upgrade to latest version of dioxus

upgrade to latest version of dioxus #110

Workflow file for this run

name: Deploy to Netlify
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build with Nix
run: |
nix develop .#custom --command bash -c '
dx build --release --platform web
'
- name: Cache Dioxus build artifacts
uses: actions/cache@v3
with:
path: |
target
dist
key: ${{ runner.os }}-dioxus-web-${{ hashFiles('**/Cargo.lock', '**/*.rs') }}
restore-keys: |
${{ runner.os }}-dioxus-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 }}