Skip to content

Commit

Permalink
fix github routing with hack
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Sep 8, 2023
1 parent 2036663 commit f519155
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,30 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Cache Rust dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy

- name: Run rustfmt
run: cargo fmt --all -- --check

- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Add wasm target
run: rustup target add wasm32-unknown-unknown

Expand All @@ -31,6 +48,9 @@ jobs:
- name: Build Rust project with trunk
run: trunk build

- name: Create 404 redirection for SPA
run: cp dist/index.html dist/404.html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit f519155

Please sign in to comment.