Skip to content

Fix gh-pages workflow to copy public directory recursively #39

Fix gh-pages workflow to copy public directory recursively

Fix gh-pages workflow to copy public directory recursively #39

Workflow file for this run

name: github pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
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 -r ./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