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 high-performance env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} run: | echo "Syncing nxtgauge-backend-rust:main → Gitea high-performance" echo "Commit: $(git rev-parse HEAD)" git remote add gitea "https://Admin:${GITEA_TOKEN}@ci.nxtgauge.com/Admin/nxtgauge-backend-rust.git" git push gitea main:high-performance --force-with-lease echo "Sync complete!"