From 71ec7f445e51ea5571680f2eba86a31ee3afbb6f Mon Sep 17 00:00:00 2001 From: Dhanveer Ramnauth Date: Mon, 10 Nov 2025 22:32:47 +1100 Subject: [PATCH] please work --- .gitea/workflows/deploy.yaml | 28 ++++++++++++++++++++++++++++ index.html | 1 + 2 files changed, 29 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml create mode 100644 index.html diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..1744747 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,28 @@ +name: Deploy website +on: + push: + branches: [ "main" ] + +jobs: + deploy: + runs-on: [ self-hosted, docker ] + container: + image: node:20-bullseye # <-- has Node for actions/checkout + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install rsync + run: | + apt-get update + apt-get install -y rsync + + - name: Debug where we are + run: | + echo "PWD: $(pwd)" + ls -la / + + # (add your build step here if needed) + + - name: Sync to Caddy root + run: rsync -a --delete --exclude '.git' ./ /deploy/maxiwebsite/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..802992c --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Hello world