diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a03035..6d77209 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,11 +31,22 @@ jobs: - name: Prepare deployment run: | - mkdir dist + # 确保目录存在 + mkdir -p dist + + # 复制网站文件 cp index.html dist/ cp style.css 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 uses: JamesIves/github-pages-deploy-action@v4 with: diff --git a/generator.js b/generator.js index f13b285..1e00ae8 100644 --- a/generator.js +++ b/generator.js @@ -102,8 +102,9 @@ function generateHTML(config) {