Skip to content

Commit

Permalink
Update GitHub Actions workflow and add .nojekyll file
Browse files Browse the repository at this point in the history
  • Loading branch information
lvxuan149 committed Sep 17, 2024
1 parent 6a1a16d commit fa428fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Debug - Show current directory and structure
run: |
pwd
ls -R
- name: Install dependencies
run: |
npm install
npm list --depth=0
run: npm ci
- name: Build site
run: npm run build
- name: Debug - List build output
run: ls -R docs/.vuepress/dist
- uses: peaceiris/actions-gh-pages@v3
- name: Create .nojekyll file
run: touch docs/.vuepress/dist/.nojekyll
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
publish_dir: docs/.vuepress/dist
force_orphan: true
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
base: '/', // 如果这是您的用户页面 (username.github.io),base 应该是 '/'
base: '/lvxuan149.github.io', // 如果您的仓库名是 lvxuan149.github.io,保持这个设置
title: "0xDragon888's blog",
description: '积跬步,记当下,好奇心,定瞬间。',
theme: 'vdoing',
Expand Down

0 comments on commit fa428fa

Please sign in to comment.