Skip to content

Commit 9761a40

Browse files
committed
feat: create sync actions
添加 GitHub Actions,自动将 GitHub 仓库推送到 Gitee,并自动部署 Pages
1 parent 0f27288 commit 9761a40

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/sync.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Sync
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Sync to Gitee
14+
uses: wearerequired/git-mirror-action@master
15+
env:
16+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
17+
with:
18+
source-repo: "[email protected]:doocs/advanced-java.git"
19+
destination-repo: "[email protected]:Doocs/advanced-java.git"
20+
21+
- name: Rebuild Gitee Pages
22+
uses: mizuka-wu/[email protected]
23+
with:
24+
repository: doocs/advanced-java
25+
cookie: ${{ secrets.GITEE_COOKIE }}
26+
branch: master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
学习之前,先来看看 [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。
1818

19-
[另外,我还将在这里更新内容,感兴趣的朋友可以进来看看](/docs/extra-page/subscriptions-for-doocs.md),深入源码学习请关注[“源码猎人”项目](https://github.com/doocs/source-code-hunter),LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解,尽在 [leetcode 项目](https://github.com/doocs/leetcode)
19+
[另外,我还将在这里更新内容,感兴趣的朋友可以进来看看](/docs/extra-page/subscriptions-for-doocs.md),深入源码学习请关注[“源码猎人”项目](https://github.com/doocs/source-code-hunter),LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》等笔面试高频题题解,尽在 [leetcode 项目](https://github.com/doocs/leetcode)
2020

2121
## 高并发架构
2222
### [消息队列](./docs/high-concurrency/mq-interview.md)

0 commit comments

Comments
 (0)