Skip to content

Commit 58c843e

Browse files
author
Regan Maharjan
committed
Update deployment: use build folder, add public assets
1 parent 57c64d7 commit 58c843e

48 files changed

Lines changed: 47 additions & 4470 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ jobs:
3131
- name: Install Dependencies
3232
run: npm ci
3333

34-
- name: Build and Deploy
35-
run: npm run deploy
34+
- name: Build
35+
run: npm run build
3636

37-
- name: Verify Git Repository
38-
run: |
39-
pwd
40-
ls -la
41-
git status
42-
git remote -v
37+
- name: Create .nojekyll
38+
run: touch build/.nojekyll
4339

4440
- name: Configure Git
4541
run: |
@@ -51,24 +47,6 @@ jobs:
5147
if: github.ref == 'refs/heads/master' # Only deploy from master branch
5248
with:
5349
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./
55-
destination_dir: ./
50+
publish_dir: ./build
5651
cname: false
57-
keep_files: false
58-
exclude_assets: |
59-
.git
60-
.github
61-
node_modules
62-
src
63-
public
64-
build
65-
.gitignore
66-
package.json
67-
package-lock.json
68-
tsconfig.json
69-
tsconfig.node.json
70-
vite.config.ts
71-
vite-plugin-save-content.ts
72-
README.md
73-
deploy.js
7452

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
build/

.nojekyll

Whitespace-only changes.
-5.81 MB
Binary file not shown.
-11.7 MB
Binary file not shown.
-14.3 MB
Binary file not shown.
-12.6 MB
Binary file not shown.
-697 KB
Binary file not shown.

assets/ZVE00854.jpg

-8.45 MB
Binary file not shown.

assets/ZVE02104.jpg

-15.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)