This commit is contained in:
Zuoling Rong
2025-02-01 17:12:23 +08:00
parent b457852129
commit 66fdccad59
2 changed files with 14 additions and 2 deletions

View File

@@ -31,11 +31,22 @@ jobs:
- name: Prepare deployment - name: Prepare deployment
run: | run: |
mkdir dist # 确保目录存在
mkdir -p dist
# 复制网站文件
cp index.html dist/ cp index.html dist/
cp style.css dist/ cp style.css dist/
cp script.js dist/ cp script.js dist/
# 显示文件列表以验证
echo "Deployment files:"
ls -la dist/
# 检查文件内容
echo "Checking index.html..."
head -n 10 dist/index.html
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@v4
with: with:

View File

@@ -102,8 +102,9 @@ function generateHTML(config) {
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${config.site.title}</title> <title>${config.site.title}</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="/menav/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<base href="/menav/">
</head> </head>
<body class="loading"> <body class="loading">
<div class="layout"> <div class="layout">