统信 UOS 利用 Github 打造 Typora 图床

参考我的另外一篇文章

Deepin配置Typora和PicGo实现GitHub图床

node 要注意的

➜  ~ sudo n stable

  installing : node-v16.15.1
       mkdir : /usr/local/n/versions/node/16.15.1
       fetch : https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz
     copying : node/16.15.1
   installed : v16.15.1 (with npm 8.11.0)

Note: the node command changed location and the old location may be remembered in your current shell.
         old : /usr/bin/node
         new : /usr/local/bin/node
If "node --version" shows the old version then start a new shell, or reset the location hash with:
hash -r  (for bash, zsh, ash, dash, and ksh)
rehash   (for csh and tcsh)

Terwer...小于 1 分钟UOS专区统信UOS专区uosuos-homedeepintyporagithubimg
使用GitHub Actions完成ci自动化部署

本文提供了利用 GitHub Actions 完成自动部署的方法,我们只需要推送代码到仓库,剩下的交给 ci 持续继承就好了。

编写任务脚本

本质上,还是自动触发执行脚本,所以我们先写好脚本 deploy.sh

image-20220417120250870
image-20220417120250870

Terwer...大约 1 分钟经验分享实用技巧githubcitoken