Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f25427916 | ||
|
|
ca8bc3c7c6 | ||
|
|
61003adcb6 |
37
.gitea/workflows/deploy-pages.yml
Normal file
37
.gitea/workflows/deploy-pages.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Deploy to Pages
|
||||||
|
run-name: ${{ gitea.actor }} is deploying to Gitea Pages 📄
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- 'site/**' # Only trigger when site files change
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout main branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: main
|
||||||
|
|
||||||
|
- name: Checkout pages branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: pages
|
||||||
|
path: pages
|
||||||
|
|
||||||
|
- name: Copy site files
|
||||||
|
run: |
|
||||||
|
# Copy site files from main to pages
|
||||||
|
cp -r main/site/* pages/
|
||||||
|
|
||||||
|
- name: Deploy to pages branch
|
||||||
|
run: |
|
||||||
|
cd pages
|
||||||
|
git config user.name "Gitea Actions"
|
||||||
|
git config user.email "actions@gitea.local"
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git diff --staged --quiet || git commit -m "Deploy from main branch: ${{ gitea.sha }}"
|
||||||
|
git push
|
||||||
31
index.html
Normal file
31
index.html
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Hello from Gitea Pages!</title>
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h1>🎉 Hello from Gitea Pages!</h1>
|
||||||
|
<p>This page is served by Codeberg Pages Server from your Gitea repository.</p>
|
||||||
|
<p>Built by Gitea Actions and deployed automatically! 🚀</p>
|
||||||
|
|
||||||
|
<div class="info">
|
||||||
|
<h2>How it works:</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Push to the <code>pages</code> branch</li>
|
||||||
|
<li>Pages server automatically serves your content</li>
|
||||||
|
<li>Access via: <code>username.eurekin.pl</code> or <code>eurekin.pl/username/repo</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="docker-info">
|
||||||
|
<h2>🐳 Docker Image Info</h2>
|
||||||
|
<p>Pull our Docker image:</p>
|
||||||
|
<pre><code>docker pull git.eurekin.pl/eurekin.pl_cloud/hello-gitea:latest</code></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
31
site/index.html
Normal file
31
site/index.html
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Hello from Gitea Pages!</title>
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<h1>🎉 Hello from Gitea Pages!</h1>
|
||||||
|
<p>This page is served by Codeberg Pages Server from your Gitea repository.</p>
|
||||||
|
<p>Built by Gitea Actions and deployed automatically! 🚀</p>
|
||||||
|
|
||||||
|
<div class="info">
|
||||||
|
<h2>How it works:</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Push to the <code>pages</code> branch</li>
|
||||||
|
<li>Pages server automatically serves your content</li>
|
||||||
|
<li>Access via: <code>username.eurekin.pl</code> or <code>eurekin.pl/username/repo</code></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="docker-info">
|
||||||
|
<h2>🐳 Docker Image Info</h2>
|
||||||
|
<p>Pull our Docker image:</p>
|
||||||
|
<pre><code>docker pull git.eurekin.pl/eurekin.pl_cloud/hello-gitea:latest</code></pre>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
50
site/style.css
Normal file
50
site/style.css
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 0;
|
||||||
|
padding: 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: white;
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #333;
|
||||||
|
border-bottom: 3px solid #4CAF50;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #f4f4f4;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-family: 'Courier New', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: #2d2d2d;
|
||||||
|
color: #f8f8f2;
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info, .docker-info {
|
||||||
|
margin-top: 2rem;
|
||||||
|
padding: 1rem;
|
||||||
|
background: #e8f5e9;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-left: 4px solid #4CAF50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docker-info {
|
||||||
|
background: #e3f2fd;
|
||||||
|
border-left-color: #2196F3;
|
||||||
|
}
|
||||||
50
style.css
Normal file
50
style.css
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
|
line-height: 1.6;
|
||||||
|
margin: 0;
|
||||||
|
padding: 20px;
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: white;
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #333;
|
||||||
|
border-bottom: 3px solid #4CAF50;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #f4f4f4;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-family: 'Courier New', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: #2d2d2d;
|
||||||
|
color: #f8f8f2;
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info, .docker-info {
|
||||||
|
margin-top: 2rem;
|
||||||
|
padding: 1rem;
|
||||||
|
background: #e8f5e9;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-left: 4px solid #4CAF50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docker-info {
|
||||||
|
background: #e3f2fd;
|
||||||
|
border-left-color: #2196F3;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user