diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fa8e12f..5610e59 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -155,28 +155,4 @@ jobs: done echo "Gitea release complete!" - - # Mirror to GitHub (optional - runs if GITHUB_MIRROR_TOKEN secret is set) - mirror-to-github: - name: Mirror to GitHub - runs-on: ubuntu-latest - needs: [build-and-release] - if: startsWith(github.ref, 'refs/tags/') && vars.GITHUB_MIRROR_TOKEN != '' - continue-on-error: true - steps: - - name: Mirror to GitHub - env: - GITHUB_MIRROR_TOKEN: ${{ vars.GITHUB_MIRROR_TOKEN }} - run: | - TAG=${GITHUB_REF#refs/tags/} - - echo "Mirroring ${TAG} to GitHub..." - - # Clone from Gitea - git clone --bare "https://git.uuxo.net/${GITHUB_REPOSITORY}.git" repo.git - cd repo.git - - # Push to GitHub - git push --mirror "https://${GITHUB_MIRROR_TOKEN}@github.com/PlusOne/dbbackup.git" || echo "Mirror push failed (non-critical)" - echo "GitHub mirror complete!" \ No newline at end of file