-
Notifications
You must be signed in to change notification settings - Fork 0
Main #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Main #1
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c90ce89
feat: 完善SEO优化 - 添加sitemap、robots.txt、FAQ结构化数据、noscript静态内容、邀请码说明
LongCoderX 7f68e2f
fix: 添加缺失的环境变量定义到生成脚本
LongCoderX eb7920c
ci: 添加 GitHub Actions 部署到 GitHub Pages 工作流
LongCoderX d5f0854
ci: 修复工作流 - 移除不需要的 npm install
LongCoderX b91dc0c
ci: 移除环境保护规则以允许部署
LongCoderX ab2b7f4
refactor: 移除平台评分系统,改为客观维度对比(价格/购买难度/稳定性/编程能力/文本能力)
LongCoderX f4c2024
refactor: 移除平台对比表格,简化SEO静态内容和README生成逻辑
LongCoderX cbd869c
feat: 固定表格前三列,添加返利链接🔥标识
LongCoderX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Deploy to GitHub Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Generate README | ||
| run: node scripts/generate-readme.js | ||
| env: | ||
| ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }} | ||
|
|
||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: '.' | ||
|
|
||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (bug_risk): Add an explicit Node setup step to avoid relying on the runner's default Node installation.
This step runs
node scripts/generate-readme.jswithout guaranteeing a specific Node version. To avoid future breakage from runner changes or version drift, add anactions/setup-node@v4step with an explicit version (e.g.node-version: 20) before running this script.