Skip to content

Commit 463f571

Browse files
committed
fix: update deployment workflow and documentation scripts
1 parent ec3ffbb commit 463f571

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
name: Deploy to GitHub Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
5+
# Runs on pushes targeting the specified branch
66
push:
7-
branches: ["main"]
7+
branches: ["nextUpdate"] # Changed to match your branch name
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -28,7 +28,7 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v4
3030
with:
31-
fetch-depth: 0 # Not needed if lastUpdated is not enabled
31+
fetch-depth: 0
3232
- name: Setup Node
3333
uses: actions/setup-node@v4
3434
with:
@@ -37,12 +37,12 @@ jobs:
3737
- name: Setup Pages
3838
uses: actions/configure-pages@v4
3939
- name: Install dependencies
40+
working-directory: docs
4041
run: |
41-
cd docs
42-
npm ci
42+
npm clean-install
4343
- name: Build
44+
working-directory: docs
4445
run: |
45-
cd docs
4646
npm run docs:build
4747
- name: Upload artifact
4848
uses: actions/upload-pages-artifact@v3

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Documentation for Meine - A terminal-based file management application",
55
"main": "index.js",
66
"scripts": {
7-
"docs:dev": "vitepress dev",
8-
"docs:build": "vitepress build",
9-
"docs:preview": "vitepress preview"
7+
"docs:dev": "vitepress dev .",
8+
"docs:build": "vitepress build .",
9+
"docs:preview": "vitepress preview ."
1010
},
1111
"keywords": [
1212
"documentation",

0 commit comments

Comments
 (0)