Files
community/.github/workflows/sync-to-gitea.yml
T
2025-05-31 11:00:25 +08:00

28 lines
758 B
YAML

name: Sync to Gitea
on:
push:
branches: [ main ]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Push to Gitea
env:
GITEA_REPO: https://gitea.com/CJKmkp/ICC-CE.git
GITEA_TOKEN: 2cd2e3be72be915d738043b44ec53024ac87271c
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
# 使用 token 认证的正确格式
git remote add gitea https://${{ secrets.GITEA_TOKEN }}@your-gitea-domain.com/your-username/your-repo.git
# 推送代码到 Gitea
git push -u gitea --all
git push -u gitea --tags