Google服务器搭建的个人博客 , 去看吧,你想要的,我都有(^^)
博客地址:一个入坑物联网开发的前端工程师,https://blog.hpanpan.cc/
服务器:Google VPS
网站源码:存在Github 地址:GitHub - hanpanapn/MyBlog: GithubPages博客
发布原理:利用Github action自动编译后上传服务器 (编译基于Github Pages 中的jekyll)
Actions中的关键代码:
//MyBlog/.github/workflows/main.yml
steps:
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
# Deploy
- name: Show Dir
run: pwd && ls
- name: Deploy
uses: easingthemes/ssh-deploy@v2.0.7
env:
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
ARGS: "-avz"
SOURCE: "_site/"
REMOTE_HOST: ${{ secrets.host }}
REMOTE_USER: root
TARGET: /home/hanpanpan92/wwwroot/blog
一个入坑物联网开发的前端工程师,喜欢物联网开发,对Linux稍有了解,最近在鼓捣软路由
https://blog.hpanpan.cc
一位前端工程师分享其物联网开发的个人博客,基于Google VPS搭建,使用Github Pages和Jekyll进行编译发布。博客中还提及了软路由方面的研究。

3830

被折叠的 条评论
为什么被折叠?



