Skip to content

Commit

Permalink
chore: actions deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ReturnTmp committed Oct 14, 2023
1 parent fe4558e commit cdd98bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
SOURCE: "docs/.vuepress/dist"
REMOTE_HOST: ${{ secrets.IP }} #服务器ip
REMOTE_USER: "root"
TARGET: "/root/app/"
TARGET: "/root/app/blog-vuepress-vdoing/"
EXCLUDE: "/node_modules/"
14 changes: 1 addition & 13 deletions docs/04.运维笔记/73.GitHub Action 部署静态博客.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:

server {
location / {
root /root/app/blog-vuepress-vdoing/docs/.vuepress/dist;
root /root/app/blog-vuepress-vdoing/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
Expand All @@ -135,18 +135,6 @@ systemctl restart nginx



### 文件同步

我们需要配置文件同步,实现本地主机和远程主机上的文件同步,在云服务器执行如下命令安装 `rsync`

```bash
yum install rsync -y
```





### 工作流推送

最后推送本地的 `deploy.yml` 到远程 GitHub 源码库,查看最后 Actions 执行效果即可
Expand Down

0 comments on commit cdd98bf

Please sign in to comment.