Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
35 changes: 35 additions & 0 deletions .github/workflows/deploy-simple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ main, gh-pages ]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: .

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
129 changes: 129 additions & 0 deletions gh-pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redis Stream Queue - 测试页面</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #dc382d 0%, #c7362c 100%);
color: white;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
}

.container {
max-width: 800px;
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 3rem;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
font-size: 3rem;
margin-bottom: 1rem;
font-weight: 800;
}

.subtitle {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}

.status {
background: rgba(16, 185, 129, 0.2);
border: 2px solid rgba(16, 185, 129, 0.5);
border-radius: 12px;
padding: 2rem;
margin: 2rem 0;
}

.success {
color: #10b981;
font-size: 1.2rem;
font-weight: 600;
}

.time {
margin-top: 2rem;
opacity: 0.8;
}

.links {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 2rem;
flex-wrap: wrap;
}

.btn {
display: inline-block;
padding: 12px 24px;
background: white;
color: #dc382d;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: transform 0.2s ease;
}

.btn:hover {
transform: translateY(-2px);
}

.url-info {
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 1rem;
margin: 1rem 0;
font-family: monospace;
}

.correct-url {
color: #10b981;
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<h1>🚀 Redis Stream Queue</h1>
<p class="subtitle">基于 Redis Stream 的高性能轻量级消息队列</p>

<div class="status">
<div class="success">✅ GitHub Pages 测试成功!</div>
<p>如果您能看到这个页面,说明 GitHub Pages 已正确配置并部署。</p>
<p>这是使用 Redis 品牌红色的全新设计。</p>
</div>

<div class="url-info">
<p><strong>正确访问地址:</strong></p>
<p class="correct-url">https://tinywan.github.io/redis-stream/</p>
</div>

<div class="links">
<a href="https://github.com/Tinywan/redis-stream" class="btn">📖 GitHub 仓库</a>
<a href="https://packagist.org/packages/tinywan/redis-stream" class="btn">📦 安装包</a>
</div>

<div class="time">
页面更新时间:<script>document.write(new Date().toLocaleString('zh-CN'));</script>
</div>
</div>
</body>
</html>
Empty file.
Loading