Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Libra11-zz committed Sep 17, 2020
1 parent e650d20 commit 966f571
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ cd -
```

配置完成之后直接运行`deploy.sh`,会将打包好的代码上传到你的`repo`仓库的`gh-pages`分支 4.进入`github``repo`仓库,点击`Settings`,下拉找到`GitHub Pages`选项,`Branch`选择`gh-pages`,目录选择根目录`/root`,然后点击`save``github`将自动为你生成链接,访问链接即可访问到你的博客。

> 注意 `mac`下如果没有成功,报出问题 `Permission denied`。就是没有权限。修改该文件 deploy.sh 的权限 :使用命令: `chmod 777 deploy.sh`,然后再运行即可。
![image](https://libra321.oss-cn-huhehaote.aliyuncs.com/github/84CBEB9D-AF4D-4E20-ACC2-12DD6CB5332F.png)

# 支持
Expand Down
2 changes: 2 additions & 0 deletions deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ git init
git add -A
git commit -m 'deploy'

# 下面的<USERNAME>就是你github上的用户名,<REPO>就是你的仓库名
# 如果发布到 https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master

# 如果发布到 https://<USERNAME>.github.io/<REPO>
# 当然你也可以不选择gh-pages分支,选择主分支和任意分支都可以
git push -f [email protected]:Libra11/vuepress-theme-libra.git master:gh-pages

cd -

0 comments on commit 966f571

Please sign in to comment.