Skip to content

Commit

Permalink
feat: cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjinchao committed Nov 7, 2023
1 parent 44547c8 commit c488580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config/themeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
blogger: {
// 博主信息,显示在首页侧边栏
avatar:
'https://cdn.statically.io/gh/Ethan-zjc/picx-images-hosting/master/20231017/v2-3b4fc7e3a1195a081d0259246c38debc_1440w.7g0i5tb41cw0.webp',
'https://jsd.cdn.zzko.cn/gh/Ethan-zjc/picx-images-hosting@master/20231017/v2-3b4fc7e3a1195a081d0259246c38debc_1440w.7g0i5tb41cw0.webp',
name: 'Ethan',
slogan: '前端界的小学生',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ author:

## 前言

我使用vuepress搭建了一个静态博客,挂在了Github pages和[Coding pages](https://dev.tencent.com/)上面。
我使用vuepress搭建了一个静态博客,挂在了[Github pages](https://ethan-zjc.github.io/hub-blog/?p=1)上面。

coding pages在国内的访问速度比github pages要快很多,而且还可以被百度收录
coding pages在国内的访问速度比github pages要快很多,而且还可以被百度收录, 有兴趣可以了解

<!-- more -->

一开始的部署方式是使用[sh部署脚本](https://github.com/Ethan-zjc/hub-blog/blob/master/deploy.sh)把代码提交到这两个平台的仓库分支,虽然已经很方便了,但是我还想把博客未打包的源码提交到Github主分支上。这就需要我操作两次命令,**我就想能不能只需要一次操作就可以同时把源码、部署代码一次性提交到两个平台呢?**
一开始的部署方式是使用[sh部署脚本](https://github.com/Ethan-zjc/hub-blog/blob/master/deploy.sh)把代码提交到这两个平台的仓库分支,虽然已经很方便了,但是我还想把博客未打包的源码提交到Github主分支上。这就需要我操作两次命令,**我就想能不能只需要一次操作就可以同时把源码、部署代码一次性提交到两个平台呢?或者同时提交到私有服务器**



## 实现

在了解GitHub Actions最近(2019.12)刚正式发布了之后,尝试使用它发现能够满足我的需求。[GitHub Actions 入门教程](http://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html?20191227113947#comment-last)

## 提交私有服务器




0 comments on commit c488580

Please sign in to comment.