Commit 6cddd592 by 刘荣雷

更新 .gitlab-ci.yml

parent 1d1010b4
Pipeline #2 failed in 0 秒
......@@ -2,8 +2,8 @@ sync_to_github:
stage: deploy
script:
# - apt-get update -y && apt-get install -y git
- git remote add github https://github.com/shufengdong/sparrowzz.git || true # 添加远程仓库,如果已存在则忽略错误
- git push github --all || true # 推送所有分支到GitHub,忽略错误以防分支不存在等
- git push github --tags || true # 推送所有标签到GitHub,忽略错误以防标签不存在等
# - git remote add github https://github.com/shufengdong/sparrowzz.git || true # 添加远程仓库,如果已存在则忽略错误
# - git push github --all || true # 推送所有分支到GitHub,忽略错误以防分支不存在等
# - git push github --tags || true # 推送所有标签到GitHub,忽略错误以防标签不存在等
only:
- master # 触发同步的分支,根据需要修改
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论