Skip to content

Commit

Permalink
added build to action
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchcelt committed Jan 14, 2024
1 parent c96c0e9 commit 1ef42a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build
run: npm run copy
run: npm run build && npm run copy
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
Expand Down
119 changes: 0 additions & 119 deletions build/main.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "src/index.html",
"type": "module",
"scripts": {
"build": "npx -y esbuild src/main.js --bundle --outdir=build --minify",
"build": "npx -y esbuild src/main.js --bundle --outdir=dist/build --minify",
"copy": "mkdir -p ./dist && cd src && cp -R . ../dist",
"game": "wds",
"develop": "wds & ava --verbose --watch ",
Expand Down

0 comments on commit 1ef42a0

Please sign in to comment.