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 @@ + + +
+ + +This page is served by Codeberg Pages Server from your Gitea repository.
+Built by Gitea Actions and deployed automatically! 🚀
+ +pages branchusername.eurekin.pl or eurekin.pl/username/repoPull our Docker image:
+docker pull git.eurekin.pl/eurekin.pl_cloud/hello-gitea:latest
+