Skip to content

Commit

Permalink
custom dioxus deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrimpuff committed Dec 27, 2024
1 parent 6ada8f4 commit 44954fb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,21 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: "Dioxus Deploy"
uses: DioxusLabs/deploy-action@main
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
buildMode: release
outDirectory: target/dx/hocg-deck-convert/release/web/public # dioxus-cli 0.6.0 doesn't respect out_dir
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2

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

- name: Dioxus
run: dx build --release && cp ./target/dx/hocg-deck-convert/release/web/public ./dist && cp ./dist/index.html ./dist/404.html

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./dist # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Formats supported:
- Proxy sheets (PDF)
- Price check (with [Yuyutei](https://yuyu-tei.jp/top/hocg))

![hololive OCG Deck Converter](https://qrimpuff.github.io/hocg-deck-convert/image.png)
![hololive OCG Deck Converter](https://qrimpuff.github.io/hocg-deck-convert/assets/image.png)

## Development

Expand Down

0 comments on commit 44954fb

Please sign in to comment.