Commit a777f6c0 authored by liziwl's avatar liziwl
Browse files

add sync action

parent e6461f63
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
name: Sync to gitee
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    
    - name: Push to gitee
      run: |
        mkdir -p /tmp/tmp_push
        cd /tmp/tmp_push
        git clone https://github.com/liziwl/sustech-master-thesis.git this_repo
        cd this_repo
        git remote set-url origin "https://${GITEE_USER}:${GITEE_PERSONAL_TOKEN}@${REPO_URL}"
        git push -u -f origin master
      env:
        GITEE_USER: ${{ secrets.GITEE_USER }}
        GITEE_PERSONAL_TOKEN: ${{ secrets.GITEE_PERSONAL_TOKEN }}
        REPO_URL: "gitee.com/liziwl/sustech-master-thesis.git"
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
# 南方科技大学研究生毕业论文模板

## 仓库
GitHub:https://gitee.com/liziwl/sustech-master-thesis

Gitee镜像:https://gitee.com/liziwl/sustech-master-thesis

## 使用
### Windows 中编译
1. `build.bat` 构建PDF文件;