Skip to content

Commit

Permalink
feat(deploy): deploy to own server.
Browse files Browse the repository at this point in the history
  • Loading branch information
summershrimp committed Sep 30, 2022
1 parent 3e8aa68 commit 5ee1aae
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/hexo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ jobs:
git config --global user.email "xm1994+asuri-robot@gmail.com"
git config --global user.name "Asuri Robot"
sed -i "s~git@github.com:Asuri-Team/Asuri-Team.github.io.git~https://${{secrets.REPO_TOKEN}}:x-oauth-basic@github.com/Asuri-Team/Asuri-Team.github.io.git~" _config.yml
npm run deploy
sed -i "s~sftp-password-placeholder~${{secrets.RSYNC_PASSWORD}}~" _config.yml
npm run deploy
7 changes: 6 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ skip_render:
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
- type: git
repo: git@github.com:Asuri-Team/Asuri-Team.github.io.git
branch: master
- type: 'sftp'
host: summershrimp.com
user: hexo-deployer
pass: sftp-password-placeholder
remotePath: /opt/asuri-blog
147 changes: 147 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"hexo": "^5.2.0",
"hexo-asset-image": "git+https://github.com/CodeFalling/hexo-asset-image.git",
"hexo-deployer-git": "^2.1.0",
"hexo-deployer-sftp": "^0.4.1",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
Expand Down

0 comments on commit 5ee1aae

Please sign in to comment.