From 9761a40961b8f4234adcf5903c84071b67d67bb4 Mon Sep 17 00:00:00 2001 From: Yang Libin Date: Sat, 28 Mar 2020 10:22:07 +0800 Subject: [PATCH] feat: create sync actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 GitHub Actions,自动将 GitHub 仓库推送到 Gitee,并自动部署 Pages --- .github/workflows/sync.yml | 26 ++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..4fdefe7 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,26 @@ +name: Sync + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Sync to Gitee + uses: wearerequired/git-mirror-action@master + env: + SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} + with: + source-repo: "git@github.com:doocs/advanced-java.git" + destination-repo: "git@gitee.com:Doocs/advanced-java.git" + + - name: Rebuild Gitee Pages + uses: mizuka-wu/gitee-pages-action@v1.0.0 + with: + repository: doocs/advanced-java + cookie: ${{ secrets.GITEE_COOKIE }} + branch: master diff --git a/README.md b/README.md index 86eed04..1063ebf 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ 学习之前,先来看看 [Issues 讨论区](https://github.com/doocs/advanced-java/issues/9#issue-394275038)的技术面试官是怎么说的吧。本项目也欢迎各位开发者朋友到 [Issues 讨论区](https://github.com/doocs/advanced-java/issues)分享自己的一些想法和实践经验,参与或加入 Doocs 开源社区请看[这里](https://github.com/doocs/advanced-java/issues/61),你也访问 [GitHub Page](https://doocs.github.io) 详细了解一下 Doocs。 -[另外,我还将在这里更新内容,感兴趣的朋友可以进来看看](/docs/extra-page/subscriptions-for-doocs.md),深入源码学习请关注[“源码猎人”项目](https://github.com/doocs/source-code-hunter),LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解,尽在 [leetcode 项目](https://github.com/doocs/leetcode)! +[另外,我还将在这里更新内容,感兴趣的朋友可以进来看看](/docs/extra-page/subscriptions-for-doocs.md),深入源码学习请关注[“源码猎人”项目](https://github.com/doocs/source-code-hunter),LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》等笔面试高频题题解,尽在 [leetcode 项目](https://github.com/doocs/leetcode)! ## 高并发架构 ### [消息队列](./docs/high-concurrency/mq-interview.md)