mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 00:16:20 +08:00
自动部署
This commit is contained in:
@@ -61,7 +61,7 @@ jobs:
|
||||
run: |
|
||||
sudo timedatectl set-timezone "Asia/Shanghai"
|
||||
mkdir -p ~/.ssh/
|
||||
echo "$HEXO_DEPLOY_PRI" > ~/.ssh/id_rsa
|
||||
echo "$DEPLOY_PRI" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan github.com >> ~/.ssh/known_hosts
|
||||
git config --global user.name 'CarmJos'
|
||||
@@ -75,6 +75,7 @@ jobs:
|
||||
git checkout -b gh-pages
|
||||
git add -A
|
||||
git commit -m "API Document generated."
|
||||
- name: Push javadocs
|
||||
run: |
|
||||
git push origin gh-pages
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user