nxtgauge-admin-solid/.github/workflows/sync-to-gitea.yml
2026-04-19 15:43:42 +02:00

29 lines
707 B
YAML

name: sync-to-gitea
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Gitea high-performance
env:
GITEA_TOKEN: ${{ secrets.GITEA_SECRET }}
run: |
echo "Syncing nxtgauge-admin-solid:main → Gitea high-performance"
echo "Commit: $(git rev-parse HEAD)"
git remote add gitea "https://Admin:${GITEA_TOKEN}@ci.nxtgauge.com/Admin/nxtgauge-admin-solid.git"
git push gitea main:high-performance --force-with-lease
echo "Sync complete!"