Another take for copying.
Browse files- .github/workflows/build.yml +3 -5
- package.json +1 -1
.github/workflows/build.yml
CHANGED
|
@@ -29,17 +29,15 @@ jobs:
|
|
| 29 |
|
| 30 |
- name: Install dependencies
|
| 31 |
run: npm install # Installs your project's npm dependencies.
|
| 32 |
-
# This will be much faster if a cache hit occurs.
|
| 33 |
|
| 34 |
- name: Build project
|
| 35 |
-
run: npm run build # Runs your project's build script (e.g., Vite, esbuild)
|
| 36 |
|
| 37 |
- name: Upload artifact for GitHub Pages
|
| 38 |
-
uses: actions/upload-artifact@
|
| 39 |
with:
|
| 40 |
name: github-pages
|
| 41 |
-
path:
|
| 42 |
-
./index*.*
|
| 43 |
|
| 44 |
deploy:
|
| 45 |
environment:
|
|
|
|
| 29 |
|
| 30 |
- name: Install dependencies
|
| 31 |
run: npm install # Installs your project's npm dependencies.
|
|
|
|
| 32 |
|
| 33 |
- name: Build project
|
| 34 |
+
run: npm run build && cp ./index*.* ./dist/ # Runs your project's build script (e.g., Vite, esbuild)
|
| 35 |
|
| 36 |
- name: Upload artifact for GitHub Pages
|
| 37 |
+
uses: actions/upload-pages-artifact@v3
|
| 38 |
with:
|
| 39 |
name: github-pages
|
| 40 |
+
path: ./dist
|
|
|
|
| 41 |
|
| 42 |
deploy:
|
| 43 |
environment:
|
package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
-
"version": "1.2.
|
| 4 |
"description": "Chat application",
|
| 5 |
"scripts": {
|
| 6 |
"build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",
|
|
|
|
| 1 |
{
|
| 2 |
"name": "localm",
|
| 3 |
+
"version": "1.2.8",
|
| 4 |
"description": "Chat application",
|
| 5 |
"scripts": {
|
| 6 |
"build": "esbuild src/index.js --target=es6 --bundle --sourcemap --outfile=./index.js --format=iife --external:fs --external:path --external:child_process --external:ws --external:katex/dist/katex.min.css",
|