diff --git a/.gitea/workflows/deploy-pages.yml b/.gitea/workflows/deploy-pages.yml new file mode 100644 index 0000000..946f94b --- /dev/null +++ b/.gitea/workflows/deploy-pages.yml @@ -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 diff --git a/site/index.html b/site/index.html new file mode 100644 index 0000000..b609351 --- /dev/null +++ b/site/index.html @@ -0,0 +1,31 @@ + + + + + + Hello from Gitea Pages! + + + +
+

🎉 Hello from Gitea Pages!

+

This page is served by Codeberg Pages Server from your Gitea repository.

+

Built by Gitea Actions and deployed automatically! 🚀

+ +
+

How it works:

+ +
+ +
+

🐳 Docker Image Info

+

Pull our Docker image:

+
docker pull git.eurekin.pl/eurekin.pl_cloud/hello-gitea:latest
+
+
+ + \ No newline at end of file diff --git a/site/style.css b/site/style.css new file mode 100644 index 0000000..f51ed99 --- /dev/null +++ b/site/style.css @@ -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; +} \ No newline at end of file