Skip to content

bump dioxus version to v0.6 and refined #63

bump dioxus version to v0.6 and refined

bump dioxus version to v0.6 and refined #63

Workflow file for this run

# https://docs.github.com/en/actions
name: Build/Publish/Deploy
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
#- run: rustup update
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: swatinem/rust-cache@v2
#- uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# ~/.npm
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: cargo-bins/cargo-binstall@main
- name: Install Dioxus and TailwindCSS
run: |
cargo binstall dioxus-cli
npm -g install -D tailwindcss
- name: Build Project
run: | #cargo r --bin syncd -F syncdep
npx tailwindcss -m -i tailwind_base.css -o assets/tailwind.css
dx build -r --platform web
cargo t
#- name: Setup GitHub Pages
# uses: actions/configure-pages@v4
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
#env:
# REPO_NAME: ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}
with: # https://github.com/actions/upload-pages-artifact
path: target/dx/${{ github.event.repository.name }}/release/web/public
# path: target/dx/${{ env.REPO_NAME }}/release/web/public
deploy:
#if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: build
permissions: # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps: # https://github.com/actions/deploy-pages
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment