Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
snendev committed Aug 15, 2024
1 parent 3c31824 commit bd1490b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
with:
node-version: lts/*

- name: Install step
- name: Install trunk
run: "cargo install trunk"

- name: Build step
- name: Create dist directory
run: "mkdir dist"

- name: Build wasm
run: "trunk build --release"

- name: Upload to Deno Deploy
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/dist
2 changes: 1 addition & 1 deletion Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Point to our `index.html`.
target = "apps/web/index.html"
# Set the output directory for the web build.
dist = "target/trunk"
dist = "dist"
# This is needed in order to host the game on itch.io.
public_url = "./"

Expand Down
2 changes: 1 addition & 1 deletion webserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { serveDir } from "jsr:@std/http/file-server";

Deno.serve((request: Request) => {
return serveDir(request, {
fsRoot: "target/trunk",
fsRoot: "dist",
urlRoot: "",
showIndex: true,
});
Expand Down

0 comments on commit bd1490b

Please sign in to comment.