From ec0982fb503ca2880894641a772d417a12bd7f0e Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Sun, 19 Apr 2026 15:35:55 +0200 Subject: [PATCH] ci: add sync-to-gitea workflow --- .github/workflows/sync-to-gitea.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/sync-to-gitea.yml diff --git a/.github/workflows/sync-to-gitea.yml b/.github/workflows/sync-to-gitea.yml new file mode 100644 index 0000000..d7f501a --- /dev/null +++ b/.github/workflows/sync-to-gitea.yml @@ -0,0 +1,27 @@ +name: sync-to-gitea + +on: + push: + branches: + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to Gitea main + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + echo "Syncing nxtgauge-ai-assistant:main → Gitea main" + echo "Commit: $(git rev-parse HEAD)" + + git remote add gitea "https://Admin:${GITEA_TOKEN}@ci.nxtgauge.com/Admin/nxtgauge-ai-assistant.git" + git push gitea main:main --force-with-lease + + echo "Sync complete!"