diff --git a/.github/workflows/gitee.yml b/.github/workflows/gitee.yml new file mode 100644 index 00000000..5c2c8ab1 --- /dev/null +++ b/.github/workflows/gitee.yml @@ -0,0 +1,24 @@ +name: Gitee sync + +on: [push] + +jobs: + gitee-push: + runs-on: windows-2019 + env: + GITEE_USERNAME: ${{ secrets.GITEE_USERNAME }} + GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 100 + + - name: Push to gitee + run: | + git remote add gitee "https://${{ env.GITEE_USERNAME }}:${{ env.GITEE_TOKEN }}@gitee.com/${{ github.repository }}.git" + git push --force gitee "${{ github.ref }}" + git remote remove gitee + + + \ No newline at end of file diff --git a/README_zh-CN.md b/README_zh.md similarity index 100% rename from README_zh-CN.md rename to README_zh.md