Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches: [develop]
# Only trigger when files in the doc directory change
paths:
paths:
- 'doc/**'

# Allow manual running of this workflow from the Actions tab
Expand Down Expand Up @@ -51,18 +51,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Temporarily modify base path for GitHub Pages
run: |
echo "base: '/nexent/'" > docs/.vitepress/config.temp.mts
cat docs/.vitepress/config.mts >> docs/.vitepress/config.temp.mts
mv docs/.vitepress/config.mts docs/.vitepress/config.original.mts
mv docs/.vitepress/config.temp.mts docs/.vitepress/config.mts

- name: Build with VitePress
run: npm run docs:build

- name: Restore original config
run: mv docs/.vitepress/config.original.mts docs/.vitepress/config.mts
- name: Build with VitePress (with base /nexent/)
run: npm exec vitepress build docs --base /nexent/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
Loading