Skip to content

Commit

Permalink
0919_1727
Browse files Browse the repository at this point in the history
  • Loading branch information
metaory committed Sep 19, 2024
1 parent 9c3e8d4 commit ba15c60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: false

env:
BUILD_PATH: "." # default value when not using subfolders
BUILD_PATH: "."

jobs:
build:
Expand All @@ -30,17 +30,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
# cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: corepack enable && pnpm install
# run: corepack use pnpm@latest
working-directory: .
- name: Build Vite
run: npm exec vite build --base=/jsonresume-theme-legacy
run: npm run deploy
working-directory: .
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build:vite": "vite build",
"build:sample": "chromium --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=sample.pdf http://localhost:5173",
"build:private": "chromium --headless --disable-gpu --no-pdf-header-footer --print-to-pdf=private.pdf http://localhost:5173/private",
"deploy": "vite build --base=/jsonresume-theme-legacy",
"preview": "vite preview"
},
"devDependencies": {
Expand Down

0 comments on commit ba15c60

Please sign in to comment.