Skip to content

Commit

Permalink
Updated web deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack committed May 23, 2024
1 parent 1deea07 commit d75d57d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:

- uses: Swatinem/rust-cache@v2

- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install Bun dependencies
run: bun install --frozen-lockfile

- name: Generate TailwindCSS
run: bun build:tailwind

- name: Install Dioxus CLI
run: cargo install dioxus-cli

Expand All @@ -43,7 +53,7 @@ jobs:
- name: Build
run: mv Cargo.toml Cargo.toml.bak && cp Cargo.web.toml Cargo.toml && dx build --release --platform web && cp ./dist/index.html ./dist/404.html

- name: Deploy Project
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"desktop": "mv Cargo.toml Cargo.toml.bak && cp Cargo.desktop.toml Cargo.toml && dx serve --platform desktop --hot-reload",
"migrate": "cd api && diesel migration run",
"tailwind": "bunx tailwindcss -i ./assets/main.css -o ./assets/out/tailwind.css --watch",
"build:tailwind": "bunx tailwindcss -i ./assets/main.css -o ./assets/out/tailwind.css",
"build:api": "cd api && cargo build --release",
"build:web": "mv Cargo.toml Cargo.toml.bak && cp Cargo.web.toml Cargo.toml && dx build --platform web --release",
"build:android": "mv Cargo.toml Cargo.toml.bak && cp Cargo.mobile.toml Cargo.toml && cargo android apk build --release --split-per-abi",
Expand Down

0 comments on commit d75d57d

Please sign in to comment.